Dear all,
I am trying to create a STFDF object and I am getting an error: Error:
order(time, t) == t is not all TRUE

My code:
> sp=readVECT6("my_vector", plugin=FALSE)

> data=as.data.frame(my_data$my_variable_of_interest)
> time=as.Date(strptime(my_data$doy, "%j"))

> my_data$doi
 [1] 113 129 145 161 177 193 209 225 241 257 273 289 305 321 337 353   1
17  33
[20]  49  65  81  97

> time
 [1] "2011-04-23" "2011-05-09" "2011-05-25" "2011-06-10" "2011-06-26"
 [6] "2011-07-12" "2011-07-28" "2011-08-13" "2011-08-29" "2011-09-14"
[11] "2011-09-30" "2011-10-16" "2011-11-01" "2011-11-17" "2011-12-03"
[16] "2011-12-19" "2011-01-01" "2011-01-17" "2011-02-02" "2011-02-18"
[21] "2011-03-06" "2011-03-22" "2011-04-07"

> spt=STFDF(sp=sp, time=time, data=data)
Error: order(time, t) == t is not all TRUE

The same is happening also if I am using as.POSIXct instead of as.Date.
Please let me know if you need more information.

Thank you

Laura

	[[alternative HTML version deleted]]

