Skip to contents

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

Examples

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

bot %>% length()
#> [1] 40
bot %>% rm_missing() %>% length
#> [1] 38
bot %>% rm_missing("fake") %>% length()
#> [1] 39