na.omit_select: Handling of NA in selected columns in a data frame

View source: R/na_omit_select.R

na.omit_selectR Documentation

Handling of NA in selected columns in a data frame

Description

If NA is present in a selected column in the data frame, returns a data frame with the rows containing NA in that column removed if the default is the case. If .retrieve = FALSE is specified, only rows with NA in the chosen column are returned. Multiple columns may be specified as the columns to be selected.

Usage

na.omit_select(.data, ..., .retrieve = TRUE)

Arguments

.data

data frame

...

One or more unquoted expressions separated by commas. Variable names can be used as if they were positions in the data frame, so expressions like x:y can be used to select a range of variables.

.retrieve

logical If TRUE, a data frame is returned excluding rows containing NA in the selected columns; if FALSE, a data frame is returned with only rows containing NA in the selected columns.


indenkun/infun documentation built on April 17, 2025, 2:52 p.m.