autonames | R Documentation |
Automatically generate names for vectors
autonames(x, ..., trimws = TRUE)
x |
A vector |
... |
Additional arguments passed to |
trimws |
Whether to trim whitespace surrounding automatically formatted
names.
Defaults to |
Returns the names of a named vector and the elements of an unnamed vector formatted as characters.
autonames(c(a = "apple", b = "banana", c = "cantaloupe")) autonames(c("apple", "banana", "cantaloupe")) autonames(10^(1:4)) autonames(10^(1:4), big.mark = ",") autonames(10^(1:4), scientific = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.