is_string: Check whether an object is a string.

Description Usage Arguments Details Value

View source: R/functions.r

Description

WARNING: This function fails when the value of x is "x"!! (i.e. it returns TRUE even when object 'x' is NOT a string per se –i.e. it was not passed as "x")

Usage

1

Arguments

x

object to check.

Details

The result of this function is different from is.character(x) since this function returns TRUE for an array of character values!

Value

boolean indicating whether the object is a string.


envnames documentation built on Dec. 8, 2020, 9:07 a.m.