validate_character: Check whether a vector is a character and not of length zero...

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

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

Usage

1

Arguments

x

A vector.

Value

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

Examples

1
2
3
4
validate_character(c("beginning", "progressing", "achieving", "excelling", "", NA, 7))

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

capl documentation built on March 16, 2021, 9:06 a.m.