search for: readcsvits

Displaying 11 results from an estimated 11 matches for "readcsvits".

2003 Sep 01
2
readcsvIts() to create irregular time series
Dear, Thanks for the previous tips about 'its' for importing the following data. 5/10/1998,7 5/11/1998,5 5/12/1998,2 5/14/1998,1 5/15/1998,1 5/19/1998,1 5/20/1998,1 1. When using the following command; test<-readcsvIts('Fires98.csv',informat=its.format("%m/%d/%Y"),header=FA LSE) the function reads in the data from the csv file as; V2 05/10/1998 7 05/11/1998 5 When testing if it's a its object is.its(test) the result is FALSE. When do you use informat or outformat? What goes...
2007 May 22
0
readcsvIts
...23/10/2006 10:01 57.221 23/10/2006 10:02 57.201 23/10/2006 10:03 57.231 23/10/2006 10:04 57.191 23/10/2006 10:05 57.191 23/10/2006 10:06 57.141 23/10/2006 10:07 57.081 I get the following: > its.format("%d/%m/%Y %X") [1] "%d/%m/%Y %X" > brent<-its(readcsvIts(filename="brenthf.csv")) Error in validObject(.Object) : invalid class "its" object: Missing values in dates > What am I doing wrong? Used %H:%S as well but nothing improved... The csv file looks fine... Using the latest versions of R and its library on windows XP. Th...
2005 Jul 12
3
using its to import time series data with uneven dates
Good day: I am trying to use readcsvIts("nwr_data_qc.txt",informat=its.format("%Y%m%d%h%M %Y"),header=TRUE,sep="",skip=0,row.names=NULL,as.is=TRUE,dec=".") to read in a file (nwr_data_qc.txt) that looks like this: Time Y M D H Min CO2 2000.18790 2000. 3. 9. 18. 30. 3...
2004 Aug 25
1
Difficulties in starting up with its package
...(x2) Now I get into trouble -- str(x1) # works str(x2) # BREAKS For the str(x2) it says "Error in object[1:ile] : subscript out of bounds" Is this a bug? I try to go on. # Let's try writing and reading -- writecsvIts(x1, filename="/tmp/try.1") y <- its(readcsvIts(filename="/tmp/try.1")) print(y) # looks fine print(x1) # looks fine y-x1 # BREAKS For the "y-x1" command, he says "Error in y - x1 : dates must match". But when I look at y and x1, the dates do seem to match. I read in two of my own data files...
2006 Oct 18
0
(no subject)
...0,2.00,0 2006-10-16 09:00:04,1.00,30.69,0,0.99,1.01,12.00,1.01,0 2006-10-16 09:00:05,2.00,26.00,0,0,1.98,15.00,1.98,0 2006-10-16 09:00:06,1.98,25.25,0,0,1.00,12.00,0,0 Etc. To get the information I need I run the following: library(its) its.format("%Y-%m-%d %H:%M:%S") x<-its(readcsvIts("datafilename")) quantile(x[,1],c(.99)) quantile(x[,2],c(.99)) etc. On the older version it returns the proper values, but on the new install I get the following error: > quantile(x[,1],c(.99)) Error in validObject(.Object) : invalid class "its" object: Dates must...
2006 Oct 18
0
R issue with quantile using its package
...6-10-16 09:00:05,2.00,26.00,0,0,1.98,15.00,1.98,0 > > 2006-10-16 09:00:06,1.98,25.25,0,0,1.00,12.00,0,0 > > Etc. > > > > To get the information I need I run the following: > > library(its) > > its.format("%Y-%m-%d %H:%M:%S") > > x<-its(readcsvIts("datafilename")) > > quantile(x[,1],c(.99)) > > quantile(x[,2],c(.99)) > > > > etc. > > > > On the older version it returns the proper values, but on the new > install I get the following error: > >> quantile(x[,1],c(.99)) > &...
2003 Aug 21
2
Read date for timeserie object
Dear all, Is there a simple trick to read in data with the following format and create a Time Serie object of it? Date CountOfField2 5/10/1998 7 5/11/1998 5 5/12/1998 2 5/14/1998 1 5/15/1998 1 5/19/1998 1 5/20/1998 1 5/21/1998 1 5/24/1998 2 5/25/1998 1 5/26/1998 2 .... 2002 ... R should recognize that some dates are not available...(NA). You can define start and end date Ok, and frequency= 365
2004 Feb 23
6
Need help on parsing dates
I know this: > library(date) > x="1979-04-04" > try=as.date(x, "ymd") > print(try) [1] 4Apr79 and that `x' here has to be a string, e.g.: > x=1979-04-04 > print(x) [1] 1971 I'm stuck in reading from a file. I say: > A <- read.table(file="try") > print(A) V1 V2 1 1979-04-04
2004 Aug 27
2
`its' questions
...gt; str(x2) Error in object[1:ile] : subscript out of bounds Problem 2: I try to write an its out and read it back in, but the two don't seem to be conformable for matrix subtraction. # Let's try writing and reading -- writecsvIts(x1, filename="/tmp/try.1") y <- its(readcsvIts(filename="/tmp/try.1")) print(y) print(x1) But this breaks -- > y-x1 Error in y - x1 : dates must match (But they are identical, as the print commands show. x1 was written out and read back into y). Problem 3: How would I convert an its object into an ordinary numerical m...
2003 Oct 22
2
High frequency time-series
Having to collect hourly electricity loads and quarter-of-an-hour electricity production data for some years I think that the tidiest way of doing it is to resort to ts but I don't know how to define such a frequency starting from a set date. Leafing through r-help mail archives I've found this *ALMOST* satisfactory message: ==========================================================
2003 Oct 28
3
ts vs. POSIX
OK. What if I have a time series which is collected every Monday, please? What is the proper way to use the start option within the ts command in order to indicate that this is Monday data, please? Thanks again! Sincerely, Erin