Learn R Programming

Indicator (version 0.1.3)

columns_with_nan: 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)

Value

It returns a vector of columns with NAN

Arguments

data

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

Examples

Run this code

data("airquality")
columns_with_nan(airquality)

Run the code above in your browser using DataLab