filterData: Filter Data

Description Usage Arguments Details Value Examples

View source: R/filterData.R

Description

Discard rows or columns whose NA value is greater than a certain percentage.

Usage

1
filterData(data, alpha1 = 1, alpha2 = 1, filter_zero_as_NA = FALSE)

Arguments

data

The data needs to be filter.

alpha1

The ratio of NA values in a column is greater than alpha1 and the column will be discarded.

alpha2

The ratio of NA values in a row is greater than alpha1 and the row will be discarded.

filter_zero_as_NA

If this parameter is true, the 0 in the data will be treated as NA.

Details

Normally, alpha1 and alpha2 only need to use one of them.

Value

Filtered data.

Examples

1
2

GaoLabXDU/CEPICS documentation built on June 9, 2020, 2:31 a.m.