Nothing
Code
coerce_to_sparse_matrix(1:10)
Condition
Error in `coerce_to_sparse_matrix()`:
! `x` must be a <data.frame>, not an integer vector.
Code
coerce_to_sparse_matrix(matrix(0, nrow = 10, ncol = 10))
Condition
Error in `coerce_to_sparse_matrix()`:
! `x` must be a <data.frame>, not a double matrix.
Code
coerce_to_sparse_matrix(iris)
Condition
Error in `coerce_to_sparse_matrix()`:
x All columns of `x` must be numeric.
i Non-numeric columns: Species.
Code
res <- coerce_to_sparse_matrix(sparse_df)
Output
sparsevctrs: Sparse vector materialized
sparsevctrs: Sparse vector materialized
Code
tmp_fun(1)
Condition
Error in `tmp_fun()`:
! `x` must be a <data.frame>, not a number.
Code
tmp_fun(1)
Condition
Error in `tmp_fun()`:
! `x` must be a <sparseMatrix>, not a number.
Code
coerce_to_sparse_data_frame(sparse_mat)
Condition
Error in `coerce_to_sparse_data_frame()`:
! `x` must have column names.
Code
coerce_to_sparse_data_frame(mtcars)
Condition
Error in `coerce_to_sparse_data_frame()`:
! `x` must be a <sparseMatrix>, not a data frame.
Code
coerce_to_sparse_data_frame(1:10)
Condition
Error in `coerce_to_sparse_data_frame()`:
! `x` must be a <sparseMatrix>, not an integer vector.
Code
tmp_fun(1)
Condition
Error in `tmp_fun()`:
! `x` must be a <sparseMatrix>, not a number.
Code
coerce_to_sparse_tibble(sparse_mat)
Condition
Error in `coerce_to_sparse_tibble()`:
! `x` must have column names.
Code
coerce_to_sparse_tibble(mtcars)
Condition
Error in `coerce_to_sparse_tibble()`:
! `x` must be a <sparseMatrix>, not a data frame.
Code
coerce_to_sparse_tibble(1:10)
Condition
Error in `coerce_to_sparse_tibble()`:
! `x` must be a <sparseMatrix>, not an integer vector.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.