Hi,

You said,

>sumstats <- c(mean,sd)
>sumstats[1]
>#Gives this error

but this is not an error! You created a list that contains two
functions, and sumstats[1] simply prints the first one.

HTH,

baptiste

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to