rm_missing: Remove shapes with missing data in fac

View source: R/cl-handling.R

rm_missingR Documentation

Remove shapes with missing data in fac

Description

Any row (or within a given column if by is specified) containing NA in ⁠$fac⁠ and the corresponding shapes in ⁠$coo⁠, lines in ⁠$coe⁠ or other objects will also be dropped.

Usage

rm_missing(x, by)

Arguments

x

the object on which to NA

by

which column of the $fac should objects have complete views

Value

a Momocs object of same class

See Also

Other handling functions: arrange(), at_least(), chop(), combine(), dissolve(), fac_dispatcher(), filter(), mutate(), rename(), rescale(), rm_harm(), rm_uncomplete(), rw_fac(), sample_frac(), sample_n(), select(), slice(), subsetize()

Examples

bot$fac$type[3] <- NA
bot$fac$fake[9] <- NA

bot %>% length()
bot %>% rm_missing() %>% length
bot %>% rm_missing("fake") %>% length()

Momocs documentation built on Nov. 13, 2023, 5:07 p.m.

Related to rm_missing in Momocs...