is.varname {lazy.tools}R Documentation

Check if the argument is a valid variable name

Description

Check if the argument is a valid variable name

Usage

is.varname(A)

Arguments

A

Input string vector or list

Details

varname is a string starting with [:alpha:] or . and having no [:punct:] except . or _ .

Value

A logical vector

Examples

is.varname( c("and2","age_1_x","a.1","a_1.","1.","_a",".a") )


[Package lazy.tools version 0.1.6 ]