After successfully using the 'its' package, I've been trying out 'zoo'
for some of its more advanced functions. I can coerce my its objects
into zoo objects without problem.
Yet I'm having trouble understanding the read.zoo function's errors.
It seems that my index class, POSIXct, is the problem.
I have csv files like this:
7/23/2003 4:05:51 PM,9.35,98.027
7/23/2003 4:20:51 PM,9.32,97.954
-----------------------
#First try:
my.format = "%m/%d/%Y %I:%M:%S %p"
x=read.zoo(myfile, sep=',', skip=30, format=my.format)
z
Error in "row.names<-.data.frame"(`*tmp*`, value = NULL) :
invalid 'row.names' length
#format= doesn't seem to work here, error means index not #unique?
#
#Second try,
#This works:
FUN=as.POSIXct(strptime(as.character(x), format=my.format,
tz='UTC+6')) )
Error in read.zoo(files[1], sep = ",", skip = 30, FUN =
as.POSIXct(strptime(as.character(x), :
couldn't find function "FUN"
---------
Any idea what the last error message means?
TIA,
christian