Cool many thanks,
Tolga
"Gabor Grothendieck" <[EMAIL PROTECTED]>
17/06/2008 14:30
To
[EMAIL PROTECTED]
cc
r-help@r-project.org
Subject
Re: [R] Replacing values in a zoo object
See ?window.zoo
> library(chron)
> z <- zoo(1:3, chron(11:13))
> z
01/12/7
See ?window.zoo
> library(chron)
> z <- zoo(1:3, chron(11:13))
> z
01/12/70 01/13/70 01/14/70
123
> window(z, chron("01/13/70")) <- 20
> z
01/12/70 01/13/70 01/14/70
1 203
> z[3] <- 30
> z
01/12/70 01/13/70 01/14/70
1 20 30
On Tue,
Dear R Users,
I am trying to replace the value of one row in a single column zoo object.
I try the following, but it does not seem to work. Could someone explain
to me how I can either replace the value for this row or just delete the
row entirely ?
Many thanks in advance,
Tolga
> is.zoo(cu
3 matches
Mail list logo