Penguin Data Basics Filter NA (dplyr)
If the file penguins.csv is not already in your working directory then download it into your working directory.
Load the data using read_csv() and use dplyr to complete the following tasks.
- Remove rows with null values in the
body_mass_gcolumn. - Remove rows with null values in the
sexcolumn. - Create a new data frame called
penguin_massesthat includes all of the original data with no null body masses and a new column containing the body mass in kilograms (body mass in grams / 1000).