simplify2result: Simplify a list to a data.frame

Description Usage Arguments Value See Also

Description

Convert a list of elements with the same number of columns to a data.frame (discarding NULL elements) and return it unchanged otherwise.

Usage

1
simplify2result(x, showWarnings = TRUE)

Arguments

x

A R object. See Value.

showWarnings

A logical value. If TRUE then warnings are collected and printed if there are any.

Value

A data.frame if x is a list of elements with the same number of columns. If the list elements do not all have the same number of columns, then a list without the NULL elements is returned. If x is not a list, then x is returned unchanged.

See Also

simplify2array


dschlaep/ecotoner documentation built on May 15, 2019, 2:57 p.m.