load_from_url | R Documentation |
Load any rds/csv/csv.gz/parquet/qs file from a remote URL
load_from_url(url, ..., seasons = TRUE, nflverse = FALSE)
url |
a vector of URLs to load into memory. If more than one URL provided, will row-bind them. |
... |
named arguments that will be added as attributes to the data, e.g. |
seasons |
a numeric vector of years that will be used to filter the dataframe's |
nflverse |
TRUE to add nflverse_data classing and attributes. |
a dataframe, possibly of type nflverse_data
try({ # prevents cran errors
urls <- c("https://github.com/nflverse/nflverse-data/releases/download/rosters/roster_2020.csv",
"https://github.com/nflverse/nflverse-data/releases/download/rosters/roster_2021.csv")
load_from_url(urls, nflverse = TRUE, nflverse_type = "rosters for 2020 & 2021")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.