sparsity: Calculate the sparsity level of the dataset

Description Usage Arguments Examples

Description

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.

Usage

1
sparsity(mld)

Arguments

mld

An "mldr" object

Examples

1
2
library(mldr.datasets)
sparsity(emotions)

fcharte/mldr.datasets documentation built on May 16, 2019, 12:06 p.m.