How to calculate standard deviation of a table in R? -
i have table of data looks this:
category : solution 1 : solution 2 : diff 1: 5 : 6 : -1 2: 7 : 6 : 1 3: 4 : 4 : 0 4: 8 : 9 : -1
how calculate standard deviation within r?
sd(d$diff)
should give standard deviation of column
to standard deviation of columns
apply(d,2,sd)
where d
data frame.
Comments
Post a Comment