is.string: Strings

View source: R/utils.R

is.stringR Documentation

Strings

Description

Checks if provided object is a string i.e. a length-one character vector.

Usage

is.string(x)

Arguments

x

an object to check

Value

a logical value indicating whether provided object is a string

Examples

    is.string("foobar")          # [1] TRUE
    is.string(1)                 # [1] FALSE
    is.string(c("foo", "bar"))   # [1] FALSE

rapportools documentation built on March 22, 2022, 1:06 a.m.