fgeo.tool (version 1.2.5)

is_multiple: Predicates to detect and flag duplicated and multiple values of a variable.

Description

is_multiple() and is_duplicated() return TRUE if they detect, respectively, multiple different values of a variable (e.g. c(1, 2)), or duplicated values of a variable (e.g. c(1, 1)).

Usage

is_multiple(.data)

is_duplicated(.data)

Arguments

.data

A vector.

Value

Logical.

See Also

Other functions for internal use in other fgeo packages: flag_if, guess_plotdim

Other functions to check inputs: check_crucial_names, flag_if_group

Other functions for developers: check_crucial_names, extract_insensitive, flag_if_group, nms_try_rename, rename_matches, type_ensure

Examples

Run this code
# NOT RUN {
is_multiple(c(1, 2))
is_multiple(c(1, 1))
is_multiple(c(1, NA))

is_duplicated(c(1, 2))
is_duplicated(c(1, 1))
is_duplicated(c(1, NA))
# }

Run the code above in your browser using DataLab