str_2_df: Tranform a character vector into a data frame

View source: R/helpers.R

str_2_dfR Documentation

Tranform a character vector into a data frame

Description

A character vector can be printed into a bulleted list. However, a long list may be rather space consuming. This function transforms a character vector into a data frame, which may be printed as a table.

Usage

str_2_df(x, n_col = 6, order = "horizontal")

Arguments

x

Character vector

n_col

Desired number of columns for the data frame

order

Shall the character vector be ordered horizontally ('horizontal', default) or vertically ('vertical')?


nrkoehler/xyzfuns documentation built on Nov. 12, 2024, 1:29 p.m.