true_names: Return the names of all TRUE items in a logical vector

View source: R/utils_vectors.R

true_namesR Documentation

Return the names of all TRUE items in a logical vector

Description

Return the names of all TRUE items in a logical vector

Usage

true_names(x)

Arguments

x

lgl with names

Value

chr of the names of true values

See Also

Other vectors: len_unique(), names_values_switch(), rle_df(), rle_groups(), rle_seq(), sort_by_names(), unify_vec_preserve_order(), unique_with_names(), vlookup(), vlookup_from_ref(), zchar_remove()

Examples

true_names(c(a = TRUE, b = FALSE))
true_names(c(a = FALSE, b = FALSE))

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.