has_too_few_IDs.Rd
Get names of groups that has to few unique cases.
has_too_few_IDs(
OBJ,
Var = colnames(OBJ)[1],
ID = "ID",
n_min = 5,
na.rm = TRUE
)
hyperSpec object
(string) variable name of factor variable
(string) variable name of ID variable
(integer) minimum number of unique IDs not to be treated as too few.
(logical) used by function sum()
. Default is TRUE
.
Vector of strings.
Other count spectra functions:
count_spectra()
,
has_enough_IDs()
has_too_few_IDs(Spectra2, "class", ID = "gr")
#> [1] "K" "l" "N" "S1"
has_too_few_IDs(Spectra2, "class", ID = "gr", n_min = 2)
#> character(0)