Skip to content

Commit

Permalink
fix NA columns in sits_sample_functions
Browse files Browse the repository at this point in the history
  • Loading branch information
OldLipe committed Sep 25, 2024
1 parent 5c441f8 commit d4c2ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sits_sample_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ sits_sampling_design <- function(cube,
warning(.conf("messages", "sits_sampling_design_alloc"),
call. = FALSE
)
alloc_options <- alloc_options[alloc_options < equal]
alloc_options <- alloc_options[alloc_options < unique(equal)]
}
# Given each allocation for rare classes (e.g, 100 samples)
# allocate the rest of the sample size proportionally
Expand Down

0 comments on commit d4c2ee3

Please sign in to comment.