detect_missings: Detect missings

View source: R/utils.R

detect_missingsR Documentation

Detect missings

Description

Function detects rows of for which any column is NA, NaN or (±) Inf.

Usage

detect_missings(.x)

Arguments

.x

a data.frame

Value

A list with elements

removed

An integer vector of indexes of rows with any NA, NaN or (±) Inf NULL if all rows are complete (all values non-missings).

rows_na_map

NULL if removed is NULL. Otherwise, a named list (names correspond to removed). Each list element is a list with elements "na", "nan" and "inf", each a character vector of column names with NA, NaN and (±) Inf values, respectively.


haukelicht/politicaltweets documentation built on July 3, 2023, 4:11 a.m.