Learn R Programming

BBmisc (version 1.13.1)

isValidName: Can some strings be used for column or list element names without problems?

Description

Checks if strings are valid R names that won't cause problems as column names.

Usage

isValidName(x, unique = TRUE)

Value

[logical]. One Boolean entry for each string in x. If the entries are not unique and unique is enabled, the first duplicate will be FALSE.

Arguments

x

[character]
Character vector to check.

unique

[logical(1)]
Should the names be unique? Default is TRUE.