Description Usage Arguments Value Examples
maturing
enframe()
converts named atomic vectors or lists to one- or two-column
data frames.
For a list, the result will be a nested tibble with a column of type list
.
For unnamed vectors, the natural sequence is used as name column.
deframe()
converts two-column data frames to a named vector or list,
using the first column as name and the second column as value.
If the input has only one column, an unnamed vector is returned.
1 2 3 |
x |
An atomic vector (for |
name, value |
Names of the columns that store the names and values.
If |
A tibble with two columns (if name
is not NULL
, the default)
or one column (otherwise).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.