Access the palmerpenguins datasets
mainThe package provides two datasets. After loading the library, you can access them using data(package = 'palmerpenguins') or by calling them directly if they are attached to the search path.
penguins: A simplified version of the data suitable for exploration and visualization. It contains 8 variables includingspecies,island,bill_length_mm,bill_depth_mm,flipper_length_mm,body_mass_g,sex, andyear.penguins_raw: The original dataset containing all variables and original names as downloaded.
library(palmerpenguins)
data(package = 'palmerpenguins')
# View the simplified dataset
head(penguins)
# View the raw dataset
head(penguins_raw)