sparsity: Calculate the sparsity level of the dataset

Description Usage Arguments Examples

View source: R/dataset_measures.R

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)

mldr.datasets documentation built on May 2, 2019, 3:43 p.m.