expand_dfmatrix: Transform a data frame containing matrix to a data frame...

Description Usage Arguments Value Author(s) Examples

Description

Data frames may have components matrices components. This is unusual, but technically allowed and necessary in some cases. Methods of dfexplore package have to deal with this.

Usage

1
expand_dfmatrix( dataframe, matrix_var = NA)

Arguments

dataframe

data.frame - a data frame with a matrix included

matrix_var

integer - position of the column containing matrix. If no argument are given, calculate these positions

Value

A data.frame with all the data. The column wich are not matrix keep unchanged and column with matrix are transform to a data.frame and combinded.

Author(s)

Joris Muller

Examples

1
2
3
4
dataframe_with_matrix <- simulate_dataframe( includeMatrix=TRUE)
str(dataframe_with_matrix)
dataframe_without_matrix <- expand_dfmatrix(dataframe_with_matrix)
str(dataframe_without_matrix)

jomuller/dfexplore documentation built on May 19, 2019, 7:26 p.m.