remove_missingdata: A function used in acoarm to remove missing data

Description Usage Arguments Details Value Author(s) Examples

View source: R/remove_missingdata.R

Description

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

Usage

1

Arguments

data

data is a dataframe.

Details

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

Value

A list of the following components.

idx

The indices of rows without missing values

data

The dataframe without missing values

Author(s)

James Y. Dai

Examples

1
2
3
## Load the example data
data(acodata)
result <- remove_missingdata(acodata[, c("vacc1_evinf","fcgr2a.3")])

JamesYuDai/TwoPhaseInd documentation built on Feb. 18, 2022, 1:52 a.m.