add_equals: Add Equals Where Necessary

View source: R/utils_text.R

add_equalsR Documentation

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)

Arguments

x

A character vector.

Value

Character vector

Examples

add_equals(c("42", "<= 42", "> 42", "= 42"))

papaja documentation built on Oct. 30, 2024, 9:09 a.m.