check_character: Check if the object is a character

Description Usage Arguments Value Examples

Description

Factors are converted to character.

Usage

1

Arguments

x

the object to check

name

the name of the object to use in the error message

na.action

link[stats]{na.fail} throws an error in case of NA (default). link[stats]{na.omit} will return x without the NA values. link[stats]{na.pass} will return x with the NA values.

Value

The function gives the character back. it throws an error when the input is not a character.

Examples

1
check_character(c("20", "b"))

inbo/n2khelper documentation built on May 18, 2019, 4:49 a.m.