Learn R Programming

DescTools (version 0.99.56)

CompleteColumns: 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)

Value

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

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.

Author

Andri Signorell <andri@signorell.net>

See Also

Examples

Run this code
CompleteColumns(d.pizza)
CompleteColumns(d.pizza, which=FALSE)

Run the code above in your browser using DataLab