You should be using read.zoo, not read.table. This
read.zoo(textConnection(Lines1), ...)
becomes
read.zoo("test1.txt", ...)
etc. See ?read.zoo and read the three vignettes in the zoo package.
On Mon, Sep 28, 2009 at 8:13 AM, e-letter wrote:
> I saved the data sets as files and then tried to
I saved the data sets as files and then tried to refer to those files.
Therefore the instruction:
> z1<-read.zoo(textConnection("/path/to/test1.txt")
means that I wanted to replace the manual data entry for Lines1 with a
file containing the data. It seems that your instructions only work
when dat
On Sat, Sep 26, 2009 at 9:08 AM, e-letter wrote:
> Test1 file contained data set 1, test2 contained data set 2
>
Its not clear to me what you are referring to. The data in your
initial post do not exhibit this problem and there is no data in any
of your subsequent posts in this thread. Here is
Test1 file contained data set 1, test2 contained data set 2
__
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, sel
Your files do not have data appropriate to your commands. Since you
did not provide the data (see last line of every message to r-help)
there is not much more that can be said.
On Sat, Sep 26, 2009 at 4:24 AM, e-letter wrote:
> I created separate text files for the 2 data sets. I enter the
> foll
I created separate text files for the 2 data sets. I enter the
following comands:
library(zoo)
library(chron)
z1<-read.zoo(textConnection("/path/to/test1.txt"),header=FALSE,sep=",",FUN=times)
z2<-read.zoo(textConnection("/path/to/test2.txt"),header=FALSE,sep=",",FUN=times)
z3<-window(na.approx(mer
Create the series as zoo series from the data, and then merge them and
fill in NAs with interpolated values using na.approx. Finally use
window to pick off the times that were in z1 and plot. See the three
vignettes that come with zoo and for time and dates see the article in
R News 4/1 and its r
Readers,
I have data with different time stamps that I wish to plot (for example):
data set 1
time(hh:mm:ss),datum
01:00:00,500
01:00:15,600
01:00:30,750
01:00:45,720
01:01:00,700
01:01:15,725
01:01:30,640
01:01:45,710
data set 2
time,datum
01:00:12,20
01:01:01,55
01:01:55,22
The time interval i
8 matches
Mail list logo