Skip to contents

Get datasets within categories

Usage

get_datasets(name, within = FALSE, about = FALSE)

Arguments

name

If you know the ID of the dataset you're looking for, use the name parameter

within

The main category to look within. Defaults to `Categories`. Can include `States` or `Cities` too.

about

Specify your topic. Can include terms like `Entertainment`, `Sports`, `assam`

Value

a tibble of the search results

Examples

get_datasets()
#> Fetching datasets...
#> # A tibble: 3 x 3
#>   name                            description           download_command        
#>   <chr>                           <chr>                 <chr>                   
#> 1 Spotify Streaming               Just like that only   download_data(name = 'd~
#> 2 Another dataset                 This just another da~ download_data(name = 'd~
#> 3 Swallows (African and European) Dataset on all known~ download_data(name = 'd~

get_datasets(within = 'Categories')
#> Fetching datasets...
#> # A tibble: 2 x 3
#>   name              description                   download_command              
#>   <chr>             <chr>                         <chr>                         
#> 1 Spotify Streaming Just like that only           download_data(name = 'dd-spor~
#> 2 Another dataset   This just another dataset th~ download_data(name = 'dd-anot~

get_datasets(within = 'States', about = 'assam')
#> Fetching datasets...
#> # A tibble: 1 x 3
#>   name                            description          download_command         
#>   <chr>                           <chr>                <chr>                    
#> 1 Swallows (African and European) Dataset on all know~ download_data(name = 'dd~