View source: R/remove_missingdata.R
remove_missingdata | R Documentation |
It is used to remove samples which have NA/missing data in covariates.
remove_missingdata(data)
data |
data is a dataframe. |
The function removes samples (by rows) which have NA/missing data.
A list of the following components.
idx |
The indices of rows without missing values |
data |
The dataframe without missing values |
James Y. Dai
## Load the example data data(acodata) result <- remove_missingdata(acodata[, c("vacc1_evinf","fcgr2a.3")])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.