check-scalar-validNames | R Documentation |
Are these valid names?
validNames(x)
x |
Object. |
TRUE
on success;
FALSE
on failure, with cause set.
Updated 2023-09-29.
make.names()
.
## TRUE ====
## Dots (periods) and underscores are valid.
validNames(c("sample.1", "sample_1"))
## FALSE ====
## Can't begin with a number.
validNames("293cells")
## Cannot contain duplicates.
validNames(c("a", "a"))
## Spaces, dashes (hyphens), and other non-alphanumerics aren't valid.
validNames("sample 1")
validNames("cell-AAAAAAAA")
validNames("GFP+")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.