| Title: | Easily Download 'EconDataverse' Datasets |
|---|---|
| Description: | The 'EconDataverse' is a universe of open-source packages to work seamlessly with economic data. This package is designed to make it easy to download selected datasets that are preprocessed by 'EconDataverse' packages and publicly hosted on 'Hugging Face'. Learn more about the 'EconDataverse' at <https://www.econdataverse.org>. |
| Authors: | Christoph Scheuch [aut, cre, cph] (ORCID: <https://orcid.org/0009-0004-0423-6819>) |
| Maintainer: | Christoph Scheuch <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0.9001 |
| Built: | 2026-06-02 09:31:45 UTC |
| Source: | https://github.com/tidy-intelligence/r-econdatasets |
Downloads and reads a Parquet file directly from the EconDataverse
Hugging Face datasets using the arrow package.
ed_get(dataset, table, columns = NULL, quiet = FALSE)ed_get(dataset, table, columns = NULL, quiet = FALSE)
dataset |
Character string naming the dataset repository
on Hugging Face (e.g., |
table |
Character string naming the table. |
columns |
Character vector naming the columns. Defaults to |
quiet |
Logical; suppress messages? Default: FALSE. |
A data.frame containing the requested dataset, or NULL if
the download fails.
df <- ed_get("wbids", "counterparts") head(df) df <- ed_get( "wbids", "counterparts", columns = c("counterpart_id", "counterpart_name"))df <- ed_get("wbids", "counterparts") head(df) df <- ed_get( "wbids", "counterparts", columns = c("counterpart_id", "counterpart_name"))
Retrieves a list of all datasets published under the EconDataverse organization on Hugging Face.
ed_get_datasets(quiet = FALSE)ed_get_datasets(quiet = FALSE)
quiet |
Logical; whether to suppress informational messages. Defaults to FALSE. |
A data frame with columns:
Dataset identifier on Hugging Face
Approximate download count
Last update timestamp (UTC)
Logical; whether the dataset is private
Logical; whether access is gated
Returns NULL if the request fails.
ed_get_datasets()ed_get_datasets()
Queries the Hugging Face Hub and returns all .parquet files
under a given dataset repository in the
EconDataverse organization,
including file sizes.
ed_get_tables(dataset, quiet = FALSE)ed_get_tables(dataset, quiet = FALSE)
dataset |
Character; the dataset repository name (e.g., "wbids"). |
quiet |
Logical; suppress messages? Default: FALSE. |
A data.frame with:
Basename without the .parquet extension
Filename with extension
Path within the repo
File size
Direct resolve/main URL to the Parquet file
Returns NULL if the request fails.
ed_get_tables("wbids")ed_get_tables("wbids")