Use the r function scan() to read the entire file into a vector and then extract the observations for each series (possible using loops?)
John C Frain 3 Aranleigh Park Rathfarnham Dublin 14 Ireland www.tcd.ie/Economics/staff/frainj/home.html mailto:fra...@tcd.ie mailto:fra...@gmail.com On 6 April 2016 at 12:50, Saba Sehrish via R-help <r-help@r-project.org> wrote: > Hi > > I have four variables and the time series data for each variable consists > of values for past 10 years on monthly basis. I want to get descriptive > stats for these four variables separately (mean, median, sd, min, max). > > The data I import to R consists of different columns, where each column > gives values for one month of a particular year (e.g. March 31st, 2010). > Right now R gives descriptive results for each column, whereas I need it > collectively for all the years ( one mean, one sd, one min, one max and one > median) for each variable. > > Kindly guide me in this regard. > > Thanks. > Saba > > Sent from Yahoo Mail on Android > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.