Dear Henrique,
This is exactly what I need. Thank you very much for your help!
rcoder
Henrique Dallazuanna wrote:
>
> Try this:
>
> x <- data.frame(Dates = seq(as.Date('2008-01-01'),
> as.Date('2008-01-31'), by =
> 'days'),
>
zoo and merge.zoo- read the help files. Use chron to generate a list
of dates that correspond to the one that you want, and then merge
away.
This should get you started
Stephen Sefick
On Wed, Aug 13, 2008 at 9:08 AM, Erik Iverson <[EMAIL PROTECTED]> wrote:
> rcoder wrote:
>>
>> Hi everyone,
>>
>
Try this:
x <- data.frame(Dates = seq(as.Date('2008-01-01'),
as.Date('2008-01-31'), by = 'days'),
Values = sample(31))
subset(x, Dates %in% as.Date(c('2008-01-05', '2008-01-20')))
On 8/13/08, rcoder <[EMAIL PROTECTED]> wrote:
>
> H
rcoder wrote:
Hi everyone,
I want to extract data from a data set according to dates specified in a
vector. I have created a blank matrix with row names (dates) that I want to
extract from the full data set. I have then performed a merge to try to o/p
rows corresponding to common dates to a resu
Hi everyone,
I want to extract data from a data set according to dates specified in a
vector. I have created a blank matrix with row names (dates) that I want to
extract from the full data set. I have then performed a merge to try to o/p
rows corresponding to common dates to a results matrix, but
5 matches
Mail list logo