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

error #26

Open
chenyongpeng1 opened this issue Sep 24, 2022 · 1 comment
Open

error #26

chenyongpeng1 opened this issue Sep 24, 2022 · 1 comment

Comments

@chenyongpeng1
Copy link

hi,spthin team!
my code is folling:

thinned_dataset_full <-
thin( loc.data = clean_df,
lat.col = "decimalLatitude", long.col = "decimalLongitude",
thin.par = 20, reps = 1,
locs.thinned.list.return = TRUE,
write.files = TRUE,
max.files = 1,
out.dir = "spthin/", out.base = "name",write.log.file = FALSE)

Beginning Spatial Thinning.
Script Started at: Sat Sep 24 15:43:26 2022Error in vectbl_as_col_location2():
! Must extract column with a single valid subscript.
✖ Subscript which(names(locs.df) == spec.col) has size 0 but must be size 1.
Run rlang::last_error() to see where the error occurred.

@mlammens
Copy link
Owner

Sorry, it's hard to trouble shoot this with just the command you used. Could you send the first couple of lines of your locations data frame?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants