R mclapply cores option

Mon 11 August 2014

This morning, I found the default behavior of the mclapply() function not quite different from the one of the lapply().  After quick investigation, I found is was due to an option not correctly set: the number of core to use.

> getOption("cores")
NULL

I must then overwrite the default mc.cores option of the mclapply()

Category: programming Tagged: R programming useless


unfactor R factor

Thu 17 July 2014
Consider the following R code:
a <- factor(floor(rnorm(100)))        class(a)        summary(a)
Why should you have that? great question. Maybe because of memory place. I really don’t know, but I received some R dataset in the form of a factor. My problem is to revert this process …

Category: R Tagged: how to programming R useless

Read More
Page 1 of 2

Next »