Learn R Programming

BioGeoBEARS (version 0.2.1)

unlist_df3: Unlist the columns in a data.frame, with more checks and adf

Description

Sometimes, matrices or data.frames will malfunction due to their having lists as columns and other weirdness. This runs unlist and additional checks, and forces conversion to a data.frame at the end.

Usage

unlist_df3(df)

Arguments

df
matrix or other object transformable to data.frame

Value

outdf data.frame

See Also

unlist_df

Examples

Run this code
x = matrix(c(1,2,3,4,5,6), nrow=3, ncol=2)
unlist_df3(x)

Run the code above in your browser using DataLab