split_rows_to_columns: This function takes a vector and truns it into a data frame...

Description Usage Arguments Value Author(s) Examples

View source: R/split-rows-to-columns.R

Description

This function takes a vector and truns it into a data frame with multiple columns.

Usage

1
split_rows_to_columns(vector, number_rows, col_name_prefix = "name")

Arguments

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

Value

A data frame with multiple columns

Author(s)

Som Bohora

Examples

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")

sbohora/Somya documentation built on May 14, 2019, 7:35 a.m.