tests/test_expand_dfmatrix.R

# Test unit for dfmatrixToStandard
library(dfexplore)
test2 <- simulate_dataframe( includeMatrix=T)
test3 <- expand_dfmatrix(test2)

# if there is no matrix
aa<-expand_dfmatrix(cars)
all(aa == cars)

# give the position
expand_dfmatrix(test2, matrix_var=9)

Try the dfexplore package in your browser

Any scripts or data that you put into this service are public.

dfexplore documentation built on May 1, 2019, 8 p.m.