vec2df | R Documentation |
Create a one-row tibble from a vector of values
vec2df(vec, nms = NULL)
vec |
A vector of single values |
nms |
A vector of names to set as column names in the resulting
data frame. Must be the same length as |
If the vector vec
is a named vector, the names will become the
column names of the resulting data frame. If the nms
vector is provided,
the names of the data frame will be set to those names, regardless of
whether or not the vector vec
had names.
A tibble::tibble()
with one row
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.