Description Usage Arguments Value See Also Examples
This is a multiple variable version of the function
tidyr::spread()
.
1 2 |
data |
A data frame. |
key |
Column names or positions. This is passed to
These arguments are passed by expression and support quasiquotation (you can unquote column names or column positions). |
... |
the columns to act as the values to spread out. |
fill |
If set, missing values will be replaced with this value. Note
that there are two types of missingness in the input: explicit missing
values (i.e. |
convert |
If |
drop |
If |
sep |
the character to use to separate parts of column names. |
key.first |
If |
. |
The separator between the key levels and the value column names. |
A wide tbl_df
, with multiple value columns spread out.
Wide versus long data (also known as narrow data) on Wikipedia.
tidyr::spread()
for the single variable version.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.