Skip to content

Commit

Permalink
Merge pull request #413 from sjevelazco/psabs
Browse files Browse the repository at this point in the history
min bugs fixed
  • Loading branch information
sjevelazco authored Feb 25, 2025
2 parents cd4bb93 + ca28497 commit 5d7a872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sample_pseudoabs.R
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ sample_pseudoabs <- function(data, x, y, n, method, rlayer, maskval = NULL, cali
# K-mean procedure
env_changed <- terra::mask(env, envp)
env_changed <- terra::scale(env_changed)
env_changed <- terra::as.data.frame(env_changed, xy = TRUE)
env_changed <- terra::as.data.frame(env_changed, na.rm = TRUE, cells = TRUE, xy = TRUE)
env_changed <- stats::na.exclude(env_changed)
cell_samp <- kf(df = env_changed, n)
}
Expand Down

0 comments on commit 5d7a872

Please sign in to comment.