find_nas: Find NAs

Description Usage Arguments Value Examples

View source: R/data-clean.R

Description

Finds the NAs in the data and returns the respective column index.

Usage

1

Arguments

data

a numerical vector or a numerical nxp data matrix.

all

a logical, if TRUE (default), the function finds columns which consist only of NAs. If FALSE, it finds the columns with any number of NAs.

Value

an index vector of the position of NAs.

Examples

1
2
data(sp500)
index_nas <- find_nas(sp500, all=FALSE)

antshi/auxPort documentation built on Oct. 27, 2020, 1:16 p.m.