Learn R Programming

modiscloud (version 0.14)

unlist_df2: Unlist the columns in a data.frame, with more checks

Description

Sometimes, matrices or data.frames will malfunction due to their having lists as columns and other weirdness. This runs unlist_df and additional checks.

Usage

unlist_df2(df)

Arguments

df
matrix or other object transformable to data.frame

Value

data.frame

See Also

unlist_df

Examples

Run this code
df = adf(matrix(c(1,2,3,4,5,6), nrow=3, ncol=2))
df2 = unlist_df2(df)
df2

Run the code above in your browser using DataLab