Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

path_to_file

Get file path to penguins.csv and penguins_raw.csv files


Description

palmerpenguins comes bundled with two csv files in its inst/extdata directory. This function make them easy to access.

Usage

path_to_file(path = NULL)

Arguments

path

Name of file in quotes with extension; "penguins.csv" and "penguins_raw.csv" will work. If NULL, the example files will be listed.

Details

The data in each file is the same as penguins and penguins_raw, but without the variable types.

Source

This function is adapted from readxl::readxl_example().

Examples

path_to_file()
path_to_file("penguins_raw.csv")
head(read.csv(path_to_file("penguins.csv")))

palmerpenguins

Palmer Archipelago (Antarctica) Penguin Data

v0.1.0
CC0
Authors
Allison Horst [aut, cre] (<https://orcid.org/0000-0002-6047-5564>), Alison Hill [aut] (<https://orcid.org/0000-0002-8082-1890>), Kristen Gorman [aut] (<https://orcid.org/0000-0002-0258-9264>)
Initial release
2020-07-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.