[R] Split an array into arbirtary sizes

Bazman76 h_a_patience at hotmail.com
Sat Oct 29 00:59:50 CEST 2011


sorry!

vols=read.csv(file="C:/Documents and Settings/Hugh/My
Documents/PhD/Quick&DirtyVols.csv" 
+  , header=TRUE, sep=",")
> x<-ts(vols[,2])
> x

so I have an ts object of 500 elements.

I want to be able to split the array into say two parts of 250?

How can I do it?
I want to keep the elements in the same order



--
View this message in context: http://r.789695.n4.nabble.com/Split-an-array-into-arbirtary-sizes-tp3948938p3949426.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list