DescTools (version 0.99.36)

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)

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.

See Also

is.na, na.omit, complete.cases

Examples

Run this code
# NOT RUN {
CompleteColumns(d.pizza)
CompleteColumns(d.pizza, which=FALSE)
# }

Run the code above in your browser using DataCamp Workspace