DS
2008-Sep-21 22:06 UTC
[R] design question on piping multiple data sets from 1 file into R
Hi, I have some queries that I use to get time series information for 8 seperate queries which deal with a different set of time series each. I take my queries run them and save the output as csv file and them format the data into graphs in excel. I wanted to know if there is an elegant and clean way to read in 1 csv file but to read the seperate matrices on different rows into seperate R data objects. if this is easy then I can read the 8 datasets in the csv file into 8 r objects and pipe them to time series objects for graphs. thanks Dhruv ------------------------------------------------------------ Email Fax It's easy to receive faxes via email. Click now to find out how! http://tagline.excite.com/fc/JkJQPTgLMRGrZRz1SpXTBEyJ7zsqYo4Wrxjvd4ml8SSHhbc6NzbNSo/ [[alternative HTML version deleted]]
Moshe Olshansky
2008-Sep-25 01:51 UTC
[R] design question on piping multiple data sets from 1 file into R
I think that you can use read.csv with nrows and skip arguments (see ?read.table). --- On Mon, 22/9/08, DS <ds5j at excite.com> wrote:> From: DS <ds5j at excite.com> > Subject: [R] design question on piping multiple data sets from 1 file into R > To: r-help at r-project.org > Received: Monday, 22 September, 2008, 8:06 AM > Hi, > I have some queries that I use to get time series > information for 8 seperate queries which deal with a > different set of time series each. > > I take my queries run them and save the output as csv > file and them format the data into graphs in excel. > > I wanted to know if there is an elegant and clean way to > read in 1 csv file but to read the seperate matrices on > different rows into seperate R data objects. > > if this is easy then I can read the 8 datasets in the csv > file into 8 r objects and pipe them to time series objects > for graphs. > > thanks > Dhruv > > ------------------------------------------------------------ > Email Fax > It's easy to receive faxes via email. Click now to find > out how! > http://tagline.excite.com/fc/JkJQPTgLMRGrZRz1SpXTBEyJ7zsqYo4Wrxjvd4ml8SSHhbc6NzbNSo/ > [[alternative HTML version deleted]] > > ______________________________________________ > 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.