str_comparison: Convert inequality statements between character, mathematic,...

View source: R/utils_math.R

str_comparisonR Documentation

Convert inequality statements between character, mathematic, symbol and function representations

Description

Convert inequality statements between character, mathematic, symbol and function representations

Usage

str_comparison(x, outtype = "chr")

Arguments

x

chr vector or inequality statements

outtype

chr class of the outype

  • "chr" A character

  • "str" A character

  • "sym" A symbol/name

  • "name" A symbol/name

  • "fun" A function

Value

chr/name/fun depending on the requested outtype

See Also

comparison_key

Other math: comparison_inverse(), comparison_inverse_key, comparison_key, evens(), interpolate(), odds()

Examples

str_comparison(">")
str_comparison("less than or equal to", "fun")
str_comparison("greater than or equal to", "sym")

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