View source: R/make_mult_col.R
make_mult_col | R Documentation |
Thus, a 10 row 1 column dataframe becomes a 4 row 3 column dataframe with 2 NA values added to fill out the end of the new dataframe. This is used to reduce the length of very narrow dataframes.
make_mult_col(.df, cols = 1)
.df |
dataframe |
cols |
number of set of columns to be made |
df <- data.frame(a = 1:5, b = letters[1:5], c = LETTERS[1:5])
make_mult_col(df, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.