Re: [R] About "SpatioTemporal" Package

2016-07-13 Thread Jim Lemon
Hi Elham, The data might have been read in as a factor, which is neither character nor numeric. In any case, it seems more likely to be a problem with the "createSTdata" function, which I don't have. Jim On Thu, Jul 14, 2016 at 1:01 PM, Elham Daadmehr wrote: > Thank you

Re: [R] About "SpatioTemporal" Package

2016-07-13 Thread Elham Daadmehr via R-help
Thank you for the reply, Jim. It gave me the same error. I checked the example data "mesa.data.raw" in this package, I found that the "ID" has the same type as the one in this data but I don't know why the function "createSTdata(y1, datst1)" give me the error. Regards, On Thursday, July

Re: [R] About "SpatioTemporal" Package

2016-07-13 Thread Jim Lemon
Hi Elham, It looks to me as though you have created the numeric variable "ID" and then passed it to a function that expects it to be a character variable. Try changing the line: ID<-60101:60128 to: ID<-paste("ID",60101:60128,sep="") and see what happens. Jim On Wed, Jul 13, 2016 at 8:29 PM,