Description Usage Arguments Value See Also Examples
Set the names in vector with a pattern based on sequential numbering,
e.g. Var1, Var2, ...
1 | set_names_idx(x, .f = "%d", ...)
|
x |
An object to be named |
.f |
A character vector or function. If |
... |
Arguments passed to |
The object x with its names (colnames, rownames) set.
setNames, set_names,
set_colnames, set_colnames.
1 2 3 | set_names_idx(1:5)
set_names_idx(1:5, "X%d")
set_names_idx(1:5, function(i) stringr::str_c("Var_", i))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.