Conditions related to missing values

row_nas(.data, match_type = "none", ...)

# S3 method for matrix
row_nas(.data, match_type = "none", ...)

# S3 method for data.frame
row_nas(.data, match_type = "none", ...)

Arguments

.data

A two-dimensional data structure.

match_type

One of ("all", "any", "none", "which_first", "count"). Possibly abbreviated.

...

Arguments passed on to op_ctrl

output_class

One of ("vector", "list", "data.frame", "matrix"), possibly abbreviated.

cols

A vector indicating which columns to consider for the operation. If NULL, all columns are used. If its length is 0, no columns are considered. Negative numbers, logical values, character vectors representing column names, and tidyselect::select_helpers are supported.

rows

Like cols but for row indices, and without tidyselect support.

factor_mode

One of ("character", "integer"), possibly abbreviated. If a column is a factor, this determines whether the operation uses its internal integer values, or the character values from its levels.

Examples

# any base type supported row_nas(data.frame(NA, NA_integer_, NA_real_, NA_complex_), "all", output_class = "data.frame")
#> V1 #> 1 TRUE