larger: Which is larger

View source: R/utils_conditionals.R

largerR Documentation

Which is larger

Description

Which is larger

Usage

larger(x, y, compare_length = TRUE)

Arguments

x

num/obj

y

num/obj

compare_length

lgl whether the lengths rather than the values should be compared

Value

num the index of the larger, or 0 if equal

See Also

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

Examples

larger(1,2)
larger(1,2, compare_length = FALSE)
larger(letters[1:3],letters[1:2])

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