“Error: unbound module” in OCaml

You have several options depending on your needs. 1) If you want to create a full project for your binary I recommend looking at jbuilder. Here is a very nice guide that explains the environment/project configuration step-by-step: OCaml for the impatient. 2) Another option is to compile the binary directly as you were trying to … Read more

HTML Display Current date

Here’s one way. You have to get the individual components from the date object (day, month & year) and then build and format the string however you wish. Expand snippet

What does the `and` keyword mean in OCaml?

The and keyword is used either to avoid multiple let (first example, I never use it for this but why not) or for mutually recursive definitions of types, functions, modules… As you can see in your second example : debug calls debugl and vice versa. So the and is allowing that. [EDIT] It bothered me … Read more

Argument “No” is missing, with no default

I need to assign values in the variable “TRTCD1” in two different classes as 1 and 2, based on the condition as stated in the R programming code below. On running these code, I am getting the error: Argument “No” is missing, with no default Here, Treatment1.class is a new variable in table z which … Read more

Categories R

Carriage return and Line feed… Are both required in C#?

System.Environment.NewLine is the constant you are looking for – http://msdn.microsoft.com/en-us/library/system.environment.newline.aspx which will provide environment specific combination that most programs on given OS will consider “next line of text”. In practice most of the text tools treat all variations that include \n as “new line” and you can just use it in your text “foo\nbar”. Especially … Read more