I tried to generate all sd of a list of list but it shows this error:
Error in rapply(d, sd, how = "list") : invalid 'f' argument
My code:
d3 <-rapply(d, sd, how = 'list')
d
is a list and is there any way to generate all sd of list?
d <-list()
for (i in 1:19){
d[[i]] <- rnorm(30,mean = 25,sd= 8)
}
BTW,
d2 <-rapply(d, mean, how='list')
this can be run.