Skip to content
Back to formatted view

Raw Message

Message-ID: <53DDE918.1090000@statistik.tu-dortmund.de>
Date: 2014-08-03T07:47:36Z
From: Uwe Ligges
Subject: Extract particular months from List in R
In-Reply-To: <1407043066.46069.YahooMailNeo@web160603.mail.bf1.yahoo.com>

On 03.08.2014 07:17, Zilefac Elvis wrote:
> Hi ALL,
> I have a List object in R. The dataframes in the List have equal rows and columns.
> How can I extract from the List, data corresponding to say c(June, July , August)?
> Remember, it is a List object, containing 100 dataframes, with daily data arranged by YYMMDD.
> Thanks for your thoughtful solutions.

An example would be helpful.
Is the date column a Date, some POSIX.. object, or just a string or 
numeric value?

In principle:
write a function that extracts data for these months from one data.frame 
and then lapply() it to the list.
Given you had provided a small example, we could have given you some 
more specific answer.

Best,
Uwe Ligges




> AT.
>
> ______________________________________________
> 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.
>