Hi there, I have a ts object that I would like wo split into arbirary sizes. Can'tfind how to do this? I realise its probaly very simple buy I can't sem to find the right function? -- View this message in context: http://r.789695.n4.nabble.com/Split-an-array-into-arbirtary-sizes-tp3948938p3948938.html Sent from the R help mailing list archive at Nabble.com.
R. Michael Weylandt <michael.weylandt@gmail.com>
2011-Oct-28 22:46 UTC
[R] Split an array into arbirtary sizes
[ perhaps? You really need to say more about what you are looking to do if you want a more informative answer M On Oct 28, 2011, at 3:11 PM, Bazman76 <h_a_patience at hotmail.com> wrote:> Hi there, > > I have a ts object that I would like wo split into arbirary sizes. > > Can'tfind how to do this? > > I realise its probaly very simple buy I can't sem to find the right > function? > > > -- > View this message in context: http://r.789695.n4.nabble.com/Split-an-array-into-arbirtary-sizes-tp3948938p3948938.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org 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.
sorry! vols=read.csv(file="C:/Documents and Settings/Hugh/My Documents/PhD/Quick&DirtyVols.csv" + , header=TRUE, sep=",")> x<-ts(vols[,2]) > xso 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.