Code
recompose(df, composition = "matrix")
Condition
Error in `recompose()`:
! `data` must only contain numeric columns.
i These columns aren't numeric: "y" and "z".
Code
recompose(df, composition = "dgCMatrix")
Condition
Error in `recompose()`:
! `data` must only contain numeric columns.
i These columns aren't numeric: "y" and "z".
Code
recompose(1)
Condition
Error in `recompose()`:
! `data` must be a data frame, not the number 1.
Code
recompose(data.frame(), 1)
Condition
Error in `recompose()`:
! `...` must be empty.
x Problematic argument:
* ..1 = 1
i Did you forget to name an argument?
composition
Code
recompose(data.frame(), composition = "foo")
Condition
Error in `recompose()`:
! `composition` must be one of "tibble", "data.frame", "matrix", or "dgCMatrix", not "foo".
Code
recompose(data.frame(), composition = 1)
Condition
Error in `recompose()`:
! `composition` must be a string or character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.