Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue in variogram fuction #74

Open
zainabnajeh opened this issue Jul 25, 2020 · 0 comments
Open

issue in variogram fuction #74

zainabnajeh opened this issue Jul 25, 2020 · 0 comments
Labels
reprex reproducible example is missing

Comments

@zainabnajeh
Copy link

Hell, I am trying to construct and plot the variogram for a mobile data (an obs. every second), I am getting this error and I don't know where is issue.

STIDF_google_32 <- stConstruct(extract_jan_g_32,space=c('Longitude','Latitude'),time='Date_Time_CA',SpatialObj=SpatialPoints(extract_jan_g_32[,c('Longitude','Latitude')]))
STIDF_google_3 <- as(STIDF_google_32, "STIDF")
vvst <- variogram(PM_fun~1, STIDF_google_32[!is.na(STIDF_google_32[,"2017-01-03::2017-01-05","PM_fun"]$PM_fun),"2017-01-03::2017-01-05","PM_fun"],tunit = "secs", width=25,cutoff=400,tlags=0:5)
The error is
Error in [<-(*tmp*, i, 1:min(nData, twindow), value = cumsum(diffTime[i + :
subscript out of bounds

Thanks in advanced.
Regards
Zeinab

@edzer edzer added the reprex reproducible example is missing label Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reprex reproducible example is missing
Projects
None yet
Development

No branches or pull requests

2 participants