tt_load {tidytuesdayR} | R 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 |
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 |
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
[Package tidytuesdayR version 1.2.1 Index]