count_missing_values_per_variable: Count missing values per variable

Description Usage Arguments Value Examples

Description

Counts the missing values on each variable of the dataset.

Usage

1
count_missing_values_per_variable(dataset, remove.zero = TRUE)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

remove.zero

boolean value indicating if the results of variables with no missing value are removed.

Value

Returns a vector with the number of missing values on each sample.

Examples

1
2
3
4
5
  ## Example of counting the missing values on each variable
  library(specmine.datasets)
  data(cachexia)
  cachexia$data[10,10] = NA
  count_missing_values_per_variable(cachexia)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.