powered by
This function checks whether the input is a proper name, i.e., a single (non-trivial) character.
character
is_name(x, error = TRUE)
If error = TRUE, either invisibly TRUE or an error is thrown. If error = FALSE, invisibly TRUE or FALSE.
error = TRUE
TRUE
error = FALSE
FALSE
Any object.
In the case that x is not a proper name, either TRUE (default) to throw an error or FALSE to return invisibly FALSE.
x