df <- vctrs::data_frame(x = 1)
recompose(df)
recompose(df, composition = "matrix")
# All columns must be numeric to convert to a matrix
df <- vctrs::data_frame(x = 1, y = "a")
try(recompose(df, composition = "matrix"))
Run the code above in your browser using DataLab