columns_with_nan {Indicator}R Documentation

Function to get the names of the columns with NAN values

Description

This function identifies and returns the names of the columns in a DataFrame that contain missing values (NaN). It is particularly useful for missing data imputation and preliminary analysis, allowing for quick identification of columns that need to be handled due to the presence of missing values

Usage

columns_with_nan(data)

Arguments

data

The DataFrame's rows represent observations and the columns represent variables

Value

It returns a vector of columns with NAN

Examples


data("airquality")
columns_with_nan(airquality)


[Package Indicator version 0.1.2 Index]