powered by
This function calculates the ratio of zero-valued elements over the total of elements. It is useful to decide whether to export in a dense or sparse format.
sparsity(mld)
An "mldr" object
"mldr"
# NOT RUN { library(mldr.datasets) sparsity(emotions) # }
Run the code above in your browser using DataLab