[R] Break into Parts

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Apr 28 13:50:46 CEST 2006


sumanta basak wrote:

> Hi R-Experts,
> 
> I have a vector of length 72. I want to break it into 12 parts and want to take standerd deviation of each group. Please help me in this regard.

x <- 1:72
apply(matrix(x, ncol=12), 2, sd)

Uwe Ligges



> Thanks,
> Sumanta.
> 
> 		
> ---------------------------------
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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




More information about the R-help mailing list