Description Usage Arguments Value
View source: R/makeDF_from_list_of_named_vectors.2.R
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)
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")
)
|
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"). |
A data frame whose columns are refernceColumnNames while rows are the vector members of the lst.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.