Skip to contents

IF more than half the values are TRUE, returns TRUE

Usage

most(x)

Arguments

x

lgl

Value

lgl

See also

Other conditionals: is_error(), is_legit(), is_project(), larger(), same(), zchar()

Examples

most(c(TRUE,TRUE,FALSE))
#> [1] TRUE
most(c(TRUE,FALSE,FALSE))
#> [1] FALSE