at_least {Momocs} | R Documentation |
Retain groups with at least n shapes
Description
Examples are self-speaking.
Usage
at_least(x, fac, N)
Arguments
x |
any Momocs object |
fac |
the id of name of the $fac column |
N |
minimal number of individuals to retain the group |
Value
a Momocs object of same class
Note
if N is too ambitious the original object is returned with a message
See Also
Other handling functions:
arrange()
,
chop()
,
combine()
,
dissolve()
,
fac_dispatcher()
,
filter()
,
mutate()
,
rename()
,
rescale()
,
rm_harm()
,
rm_missing()
,
rm_uncomplete()
,
rw_fac()
,
sample_frac()
,
sample_n()
,
select()
,
slice()
,
subsetize()
Examples
table(trilo$onto)
at_least(trilo, "onto", 9)
at_least(trilo, "onto", 16)
at_least(trilo, "onto", 2000) # too ambitious !
[Package Momocs version 1.4.1 Index]