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

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

Andri Signorell <andri@signorell.net>

Examples

CompleteColumns(d.pizza)
#> [1] "index"        "delivery_min"
CompleteColumns(d.pizza, which=FALSE)
#>          index           date           week        weekday           area 
#>           TRUE          FALSE          FALSE          FALSE          FALSE 
#>          count         rabate          price       operator         driver 
#>          FALSE          FALSE          FALSE          FALSE          FALSE 
#>   delivery_min    temperature   wine_ordered wine_delivered     wrongpizza 
#>           TRUE          FALSE          FALSE          FALSE          FALSE 
#>        quality 
#>          FALSE