validate_character {capl}R Documentation

Check whether a vector is a character and not of length zero or "".

Description

This function checks whether a vector is a character and not of length zero or "".

Usage

validate_character(x)

Arguments

x

A vector.

Value

Returns a character vector (if valid) or NA (if not valid).

Examples

validate_character(c("beginning", "progressing", "achieving", "excelling", "", NA, 7))

# [1] "beginning"   "progressing" "achieving"   "excelling"   NA            NA
# [7] "7"


[Package capl version 1.42 Index]