Learn R Programming

specmine (version 1.0)

count_missing_values_per_variable: Count missing values per variable

Description

Counts the missing values on each variable of the dataset.

Usage

count_missing_values_per_variable(dataset, remove.zero = T)

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

Run this code
  ## Example of counting the missing values on each variable
  data(cachexia)
  cachexia$data[10,10] = NA
  count_missing_values_per_variable(cachexia)

Run the code above in your browser using DataLab