powered by
Automatically generate names for vectors
autonames(x, ..., trimws = TRUE)
Returns the names of a named vector and the elements of an unnamed vector formatted as characters.
A vector
Additional arguments passed to format()
format()
Whether to trim whitespace surrounding automatically formatted names. Defaults to TRUE.
TRUE
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)
Run the code above in your browser using DataLab