Skip to contents

Filters the data frame by removing rows where the specified column contains NA values.

Usage

filter_complete(df, param_name)

Arguments

df

A data frame object to filter.

param_name

Character. The name of the column to check for non-NA values.

Value

A data.frame containing only rows with non-NA values in the specified column.

Examples

if (FALSE) { # \dontrun{
  df <- data.frame(a = c(1, NA, 3), b = c(4, 5, NA))
  complete_df <- filter_complete(df, "a")
} # }