On Fri, Aug 8, 2014 at 7:55 AM, Abdoulaye Sarr <abdoulaye...@gmail.com> wrote: > I am still hoping to have a quick explanation on what is causing the error > or a suggestion on another way to do it?
Then you need to provide the small reproducible example that has already been requested. This may help: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example Sarah > > Cheers, > eus > > > On Sun, Aug 3, 2014 at 2:20 PM, Abdoulaye Sarr <abdoulaye...@gmail.com> > wrote: > >> I think the problem could be related to dates in precip, in fact here I am >> using dekadal precip( 10 days average therefor for each month you have 01, >> 11 and 21 as you can see in the date in sample dataframes dprec84.rda and >> the stations1.rda. >> >> After creating these dataframes I am trying to use use meteo to create a >> STFDF (I guess other packaged could do it?) using the command below: >> >> > prec <- meteo2STFDF(dprec84,stations1, crs= CRS('+proj=longlat >> +datum=WGS84')) >> Joining by: staid, date >> >> Joining by: staid >> Error in ST(sp, time, endTime) : time is not a time based class >> >> If doable with other package also will be fine for me. >> >> asarr >> >> >> On Sun, Aug 3, 2014 at 9:40 AM, Edzer Pebesma < >> edzer.pebe...@uni-muenster.de> wrote: >> >>> Please provide a small, reproducible example. >>> >>> Wbr, >>> >>> On 07/26/2014 08:29 PM, Abdoulaye SARR wrote: >>> > >>> > Hello list, >>> > >>> > I am creating a space time full data frame but having this error >>> message: >>> > >>> > Joining by: staid >>> > Error in ST(sp, time, endTime) : time is not a time based class >>> > >>> > the data frame 10 days average precip used looks like this: >>> > >>> > staid time prec >>> > 1 38007200 1984-01-01 0.0 >>> > 2 38008400 1984-01-01 0.8 >>> > 3 38014000 1984-01-01 0.0 >>> > 4 38008100 1984-01-01 0.0 >>> > 5 38008700 1984-01-01 0.0 >>> > 6 38009200 1984-01-01 0.0 >>> > >>> > >>> > The next date 1984-01-11 etc.. >>> > >>> > could someone help solve this urgent issue. >>> > >>> > Best regards, >>> > >>> > eus >>> > -- Sarah Goslee http://www.functionaldiversity.org _______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo