Learn R Programming

Momocs (version 1.1.6)

at_least: Retains group with at least a certain number of individuals

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

See Also

Other handling functions: arrange, chop, combine, dissolve, filter, mutate, rename, rm_uncomplete, rw_fac, sample_frac, sample_n, select, slice, subset.Coo, transmute

Examples

Run this code
data(trilo)
table(trilo, "onto")
at_least(trilo, "onto", 9)
at_least(trilo, "onto", 16)
at_least(trilo, "onto", 2000) # too ambitious !

Run the code above in your browser using DataLab