[R] How to resolve this error
Joshua Bedana
bedanajoshuasy at gmail.com
Fri Oct 6 15:05:17 CEST 2017
> library(SpatioTemporal)
> library(plotrix)
> library(maps)
> palay.cov<-read.csv("C:/Users/BEDANA-PC/Desktop/STThesisWD/Thesis
Data/palay.covar.csv")
> palay.o<-read.table("C:/Users/BEDANA-PC/Desktop/STThesisWD/Thesis
Data/palay.obs.txt")
> palay.obs<-as.matrix(palay.o)
> palay.stc<-read.table("C:/Users/BEDANA-PC/Desktop/STThesisWD/Thesis
Data/palay.stcovars.txt")
> palay.stcov<-as.matrix(palay.stc)
> palay.data.raw<-list(X=palay.cov,obs=palay.obs,Y=palay.stcov)
> ##matrix of observations
> obs<-palay.data.raw$obs
> ##data.frame of geographical covariates
> geocov<-palay.data.raw$X
> ##matrix of spatio-temporal covariate
> stcov<-list(Y=palay.data.raw$Y)
> ##creating ST Data
> palay.data<-createSTdata(obs,geocov,SpatioTemporal=stcov)
Error in stCheckObs(obs) :
Duplicated observations, i.e. multiple elements with same obs$date and
obs$ID.
>
please help me.
[[alternative HTML version deleted]]
More information about the R-help
mailing list