CompleteColumns: Find Complete Columns

View source: R/DescTools.r

CompleteColumnsR Documentation

Find Complete Columns

Description

Return either the columnnames or a logical vector indicating which columns are complete, i.e., have no missing values.

Usage

CompleteColumns(x, which = TRUE)

Arguments

x

a data.frame containing the data

which

logical, determining if the names of the variables should be returned or a if a logical vector indicating which columns are complete should be returned.

Value

A logical vector specifying which columns have no missing values across the entire sequence.

Author(s)

Andri Signorell <andri@signorell.net>

See Also

is.na, na.omit, complete.cases

Examples

CompleteColumns(d.pizza)
CompleteColumns(d.pizza, which=FALSE)

DescTools documentation built on Sept. 26, 2024, 1:07 a.m.