Skip to contents

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

Examples

str_comparison(">")
#> [1] "greater than"
str_comparison("less than or equal to", "fun")
#> [[1]]
#> function (e1, e2)  .Primitive("<=")
#> 
str_comparison("greater than or equal to", "sym")
#> [[1]]
#> `>=`
#>