[R] Re ading Functions that are in a Vector

baptiste auguie baptiste.auguie at googlemail.com
Mon Sep 28 10:55:48 CEST 2009


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




More information about the R-help mailing list