On 05/01/2010 02:55 PM, Carol Gao wrote:
Dear R lists,
...
Would anyone help me with setting data frames according to the date?
...
my data looks like above, but definitely with more rows. Now I want a data
frame with only "2008-12-02" in the first part of the 8th variable---Time.

Hi Carol,
I would do something like this:

my.data.frame[format(my.data.frame$Time,"%Y-%m-%d") == "2008-12-02",]

although there may be a better way by extracting only the day from the Time field.

Jim

______________________________________________
R-help@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.

Reply via email to