Learn R Programming

explore (version 1.3.4)

drop_obs_with_na: Drop all observations with NA-values

Description

Drop all observations with NA-values

Usage

drop_obs_with_na(data)

Value

Data frame

Arguments

data

Data frame

Examples

Run this code
data <- data.frame(a = 1:10, b = rep("A",10))
data[1,1] <- NA
drop_obs_with_na(data)

Run the code above in your browser using DataLab