Learn R Programming

papaja (version 0.1.2)

add_equals: Add Equals Where Necessary

Description

This is an internal function that prepends every element of a character vector with an 'equals' sign if the respective element does not contain one of c("=", "<", ">").

Usage

add_equals(x)

Value

Character vector

Arguments

x

A character vector.

Examples

Run this code
add_equals(c("42", "<= 42", "> 42", "= 42"))

Run the code above in your browser using DataLab