Conditions related to infinite values

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

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

# S3 method for data.frame
row_infs(.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.

Examples

# consistency with R with respect to NA/NaN row_infs(data.frame(NaN, NA_real_, NA_complex_), "none")
#> [1] TRUE
# complex can also be infinite row_infs(data.frame(Inf, -Inf, as.complex(Inf), as.complex(-Inf)), "all")
#> [1] TRUE