makeDF_from_list_of_named_vectors.2: Make data frame from list of named vector

Description Usage Arguments Value

View source: R/makeDF_from_list_of_named_vectors.2.R

Description

In the output data frame row names are named after list names, while column names after unique vector names (if infer_column_names is TRUE)

Usage

1
2
3
4
5
6
7
makeDF_from_list_of_named_vectors.2(
  lst,
  infer_count_of_columns = F,
  ncols = 4,
  infer_column_names = F,
  colnames = c("home insurance", "energy", "council tax", "water")
)

Arguments

lst

List of named vectors which we want to position in the outputted data frame.

infer_count_of_columns

Boolean. Should function infer the count of columns in output by taking the maximum length among vector lenghts? Defults to FALSE.

ncols

Integer of count of columns if infer_count_of_columns set to FALSE. Defults to 4.

infer_column_names

Boolean. Should function infer the names of columns by taking the unique names among amalgamation of vector names? Defults to FALSE.

colnames

Character vector of column names if infer_column_names set to FALSE. Defults to c("home insurance","energy","council tax","water").

Value

A data frame whose columns are refernceColumnNames while rows are the vector members of the lst.


msxakk89/dat documentation built on Aug. 3, 2020, 6:39 p.m.