Remove rows with missing values
drop_na() removes rows from a DataFrame where specified columns have missing values.
df (DataFrame): The
DataFrame.
… (Symbol): (Optional) Columns to
check for missing values (use $col syntax).
The DataFrame with NA rows removed.
drop_na(df)
drop_na(df, $age, $score)