powered by
penguins.csv
penguins_raw.csv
palmerpenguins comes bundled with two csv files in its inst/extdata directory. This function make them easy to access.
inst/extdata
path_to_file(path = NULL)
Name of file in quotes with extension; "penguins.csv" and "penguins_raw.csv" will work. If NULL, the example files will be listed.
"penguins.csv"
"penguins_raw.csv"
NULL
The data in each file is the same as penguins and penguins_raw, but without the variable types.
penguins
penguins_raw
path_to_file() path_to_file("penguins_raw.csv") head(read.csv(path_to_file("penguins.csv")))
Run the code above in your browser using DataLab