Skip to contents

Search portal packages by title.

Usage

search_packages(title, limit = 50)

Arguments

title

Title to search (case-insensitive).

limit

Maximum number of packages to return. The default is 50. The maximum limit is 1000.

Value

A tibble of matching packages along with package metadata, including title, id, topics, civic_issues, excerpt, publisher, dataset_category, num_resources (the number of resources in the package), formats (the different formats of the resources), refresh_rate (how often the package is refreshed), and last_refreshed (the date it was last refreshed).

Examples

# \donttest{
search_packages("ttc")
#> # A tibble: 15 × 11
#>    title            id    topics civic_issues publisher excerpt dataset_category
#>    <chr>            <chr> <chr>  <chr>        <chr>     <chr>   <chr>           
#>  1 TTC Subway Shap… c01c… "NULL" "NULL"       Toronto … "This … Document        
#>  2 TTC Ridership A… ef35… "Tran… "Mobility"   Toronto … "This … Document        
#>  3 TTC Routes and … 7795… "Tran… "NULL"       Toronto … "Data … Document        
#>  4 TTC Subway Dela… 996c… "Tran… "NULL"       Toronto … "TTC S… Document        
#>  5 TTC Bus Delay D… e271… "Tran… "NULL"       Toronto … "TTC B… Document        
#>  6 TTC Streetcar D… b68c… "Tran… "NULL"       Toronto … "TTC S… Document        
#>  7 TTC BusTime Rea… 31ed… "Tran… "Mobility"   Toronto … "This … Document        
#>  8 TTC Real-Time N… 8217… "Tran… "NULL"       Toronto … "The N… Document        
#>  9 TTC  - Ridershi… 2c4c… "c(\"… "c(\"Fiscal… Toronto … "This … Website         
#> 10 TTC - Monthly R… d2a7… "Tran… "NULL"       Toronto … "This … Website         
#> 11 TTC - Average W… 4b80… "Tran… "NULL"       Toronto … "This … Website         
#> 12 TTC Annual Pass… 1444… "Tran… "Mobility"   Toronto … "This … Website         
#> 13 TTC - Annual Pa… aedd… "Tran… "Mobility"   Toronto … "This … Website         
#> 14 TTC Ridership -… 4eb6… "Tran… "NULL"       Toronto … "This … Document        
#> 15 TTC Ridership -… d9dc… "Tran… "Mobility"   Toronto … "This … Document        
#> # ℹ 4 more variables: num_resources <int>, formats <chr>, refresh_rate <chr>,
#> #   last_refreshed <date>
# }