Description Usage Arguments Details
View source: R/expand_and_tpose.R
Background function (not user-facing).
1 | expand_and_tpose(input_frame, rows_out = 10, name_col = NULL, vals_col = NULL)
|
input_frame |
Dataframe to be transposed. |
rows_out |
Number of rows to expand by. |
name_col |
Name of column containing transposed column names. Defaults to first column. |
vals_col |
Name of column containing transposed column values. Defaults to second column. |
Given a dataframe with at least two columns, transpose it using one column for names and another for values (defaults to 1 and 2, respectively) and duplicate into as many rows as needed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.