Dear R Experts,
Why I try to run this expression:
x-sapply(rnorm(rep(10,10),mean=9,sd=1.5),mean)
it evaluates the first 1 values and then stops, but does not return
to the command prompt. My cpu keeps running at 100%. When I exit the
expression with CTL-C, I then see that x holds
On 4/27/2007 7:13 PM, Robert Barber wrote:
Dear R Experts,
Why I try to run this expression:
x-sapply(rnorm(rep(10,10),mean=9,sd=1.5),mean)
it evaluates the first 1 values and then stops, but does not return
to the command prompt. My cpu keeps running at 100%. When I exit the
try this way instead:
system.time(x - sapply(1:10, function(x)mean(rnorm(10, mean=9, sd=1.5
[1] 5.44 0.00 5.95 NA NA
str(x)
num [1:10] 10.11 9.17 9.33 9.41 10.14 ...
On 4/27/07, Robert Barber [EMAIL PROTECTED] wrote:
Dear R Experts,
Why I try to run this expression: