check.emptycolumn: Count share of missing values in a variable

Description Usage Arguments Value Examples

Description

Count share of missing values in a variable

Usage

1
check.emptycolumn(data, proportion = F)

Arguments

data

Dataframe to inspect

proportion

Boolean indicating whether we should return proportion of missing values or a boolean vector indicating whether all values are missing or not

Value

A named vector (from data colnames) of missing values proportion or TRUE/FALSE vector

Examples

1
2
3
4
5
df <- data.frame(x1 = rnorm(10),x2 = rnorm(10))
df$x3 <- rep(NA,10)
df$x1[df$x1<0] <- NA
check.emptycolumn(df)
check.emptycolumn(df,proportion = T)

EpidemiumOpenCancer/OpenCancer documentation built on May 12, 2019, 7:46 a.m.