tt_load: Load TidyTuesday data from Github

View source: R/tt_load.R

tt_loadR Documentation

Load TidyTuesday data from Github

Description

Load TidyTuesday data from Github

Usage

tt_load(x, week = NULL, files = "All", ..., auth = gh::gh_token())

Arguments

x

The date of data to pull (in "YYYY-MM-dd" format), or the four-digit year as a number.

week

Which week number to use within a given year. Only used when x is a valid year.

files

Which file names to download. Default "All" downloads all files for the specified week.

...

Additional parameters to pass to the parsing functions. Note: These arguments will be passed for all filetypes.

auth

A GitHub token. See gh::gh_token() for more details.

Value

tt_data object, which contains data that can be accessed via $, and the readme for the week's TidyTuesday, which can be viewed by printing the object or calling readme().

Examples


tt_output <- tt_load("2019-01-15")
tt_output
agencies <- tt_output$agencies


thebioengineer/tidytuesdayR documentation built on Sept. 8, 2024, 7:59 p.m.