tableMissings-methods: It creates a vector with the amount of missing in an...

Description Usage Arguments Value See Also Examples

Description

This function can be used to obtain a table with the missing data in exposures and in phenotypes of an ExposomeSet.

Usage

1
tableMissings(object, set, output = "n", sort = TRUE)

Arguments

object

ExposomeSet which exposome will be plotted.

set

Can be set to "exposures" or to "phenotypes".

output

(default "n") Can be "n" for number of values, and "p" for percentage.

sort

(default TRUE) If TRUE the chart will be ordered from the features with less missing data to the ones with more missing data.

Value

A numeric vector with number of missing values per exposure. The vector is labeled with the exposure's names.

See Also

plotFamily to draw the profile of a family of exposures, plotHistogram to draw the shape of an exposure, plotMissings to draw a plot with the missing data an ExposomeSet, imputation to impute missing data on the exposures of an ExposomeSet

Examples

1
2
3
4
data("exposome")
# The included has no missing data
tableMissings(expo, set = "exposures")
tableMissings(expo, set = "phenotypes")

rexposome documentation built on March 13, 2021, 2:01 a.m.