remove_lt_gt: Remove less-than/greater-than symbols and convert to numeric

View source: R/utils.R

remove_lt_gtR Documentation

Remove less-than/greater-than symbols and convert to numeric

Description

The following characters will be removed from strings: <, >, =, space. If string contains other characters, the original string will be returned.

Usage

remove_lt_gt(x)

Arguments

x

Vector of numbers possibly containing extraneous strings.

Value

If non-numeric characters were successfully removed, returns a numeric vector. If some elements of 'x' contained other characters, their original value will be returned and the result will be a character vector.


clinPK documentation built on May 9, 2022, 9:06 a.m.