Hello,
I have some question on chron
I currently doing this
t1 <- chron(,"11:30:00")
t2 <- chron(,"11:45:00")
tt <- seq(t1,t2,by=times("00:00:01"))
tt has 901 values (15 minutes * 60 secs) and then
x1 <- rnorm(1:901)
x2 <- rnorm(1:901)
x3 <- rnorm(1:901)
df <- data.frame(tt, x1, x2, x3)
I
How can achieve this in R using seq, or rep function
c(-1,0,1,0,-1,0,1,0,-1,0)
The range value is between-1 and 1, and I want it such that there could be
n number of points between -1 and 1
Anyone? Please help Thanks
Rusty
[[alternative HTML version deleted]]
_
Hello,
I have a xts object, I would like to fill the NA with linear
interpolated data. Can anyone please help.
> str(zz)
An xts object from 2010-11-24 15:59:29 to 2010-11-24 16:00:00 containing:
Data: num [1:23401, 1] 312 312 312 312 312 ...
Indexed by objects of class: [POSIXct,POSI
Hello I have trouble getting my original datetime back see below. I hope I
am missing something. Please help.
> tt <- as.POSIXct("2011-01-07 07:49:13", tz="EST")
> tt
[1] "2011-01-07 07:49:13 EST"
> ttn <- as.numeric(tt)
> ttn
[1] 1294404553
> tt <- as.POSIXct(ttn,origin='1970-01-01',tz="EST")
>
Hello,
I am new to R and need some help.
I have data in following format
DATA matrix
DateTime oh l c
2009-01-01 07:30:00 2 3 4 5
2009-01-01 07:33:00 4 2 5 7
I am able to fill the gap using combination of seq and chron
2009-0
5 matches
Mail list logo