Learn R Programming

TwoPhaseInd (version 1.1.2)

remove_missingdata: A function used in acoarm to remove missing data

Description

It is used to remove samples which have NA/missing data in covariates.

Usage

remove_missingdata(data)

Arguments

data

data is a dataframe.

Value

A list of the following components.

idx

The indices of rows without missing values

data

The dataframe without missing values

Details

The function removes samples (by rows) which have NA/missing data.

Examples

Run this code
# NOT RUN {
## Load the example data
data(acodata)
result <- remove_missingdata(acodata[, c("vacc1_evinf","fcgr2a.3")])
# }

Run the code above in your browser using DataLab