get_datasets {tndata} | R Documentation |
List Available Datasets
Description
Fetches datasets by keyword and/or author
Usage
get_datasets(
keyword = NULL,
author = NULL,
organization = NULL,
max_results = 100
)
Arguments
keyword |
Character. Keyword to search for in dataset titles. |
author |
Character. Author name to filter datasets by. |
organization |
Character. Organization name to filter datasets by. |
max_results |
Numeric. Maximum number of datasets to return, defaults to 100. |
Value
A tibble (data frame) with the following columns:
- title
Character. Title of the dataset.
- id
Character. ID of the dataset.
- resources
List. A list of tibbles with the following columns:
- name
Character. Name of the dataset.
- format
Character. Format of the dataset.
- url
Character. URL of the dataset.
- created
Date. Date the dataset was created.
Examples
try({
datasets <- get_datasets("agriculture")
head(datasets)
})
[Package tndata version 0.1.0 Index]