str2LogicalOrNumeric: Convert string to logical or numeric.

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Convert string to logical or numeric.

Usage

1

Arguments

string

(character) a string

Value

a logical or numeric value

Examples

1
2
3
4
5
6
## Not run: 
  str2LogicalOrNumeric("TRUE") # -> TRUE
  str2LogicalOrNumeric("5") # -> 5
  str2LogicalOrNumeric("NaN") # -> "NaN"

## End(Not run)

ebimodeling/ghgvcR documentation built on April 28, 2021, 8:19 p.m.