Description Usage Arguments Value Author(s) Examples
View source: R/split-rows-to-columns.R
This function takes a vector and truns it into a data frame with multiple columns.
1 | split_rows_to_columns(vector, number_rows, col_name_prefix = "name")
|
vector |
A vector |
number_rows |
Number of rows to split the vector into data frame |
col_name_prefix |
A prefix for column names for the data frame |
A data frame with multiple columns
Som Bohora
1 2 | split_rows_to_columns(mtcars$mpg, number_rows = 7, col_name_prefix = "ID List")
split_rows_to_columns(mtcars$mpg, number_rows = 1, col_name_prefix = "ID List")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.