Description Usage Arguments Value Author(s) Examples
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.
1 | expand_dfmatrix( dataframe, matrix_var = NA)
|
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 |
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.
Joris Muller
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.