Hello,
 
I am wondering how to compute functions like mean(), sd(), etc. on a data
frame, but instead of getting a vector with the summary stat calculated
individually for each column, get one number for the whole data set.  I have
noticed that coercing the frame to a time series (ts) gives the desired
result for certain functions, but not others.  mean() gives a single numeric
result, but sd() still gives standard deviations per column.  I have noticed
that when my data is coerced to a ts, it actually gets the class c("mts",
ts") instead of just "ts", which may or may not have something to do with
the problem.
 
Thanks for any help you can give!

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch 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