Learn R Programming

sommer (version 4.3.5)

propMissing: Proportion of missing data

Description

propMissing quick calculation of the proportion of missing data in a vector.

Usage

propMissing(x)

Value

$res

a numeric value with the proportion of missing data.

Arguments

x

vector of observations.

Author

Giovanny Covarrubias-Pazaran

References

Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744

See Also

See the function vsc to know how to use propMissing in the mmec solver.

Examples

Run this code
x <- c(1:10, NA)
propMissing(x)

Run the code above in your browser using DataLab