ny_tags: Tags

Description Usage Arguments Examples

View source: R/tags.R

Description

With the TimesTags API, you can mine the riches of the New York Times tag set. The TimesTags service matches your query to the controlled vocabularies that fuel NYTimes.com metadata. You supply a string of characters, and the service returns a ranked list of suggested terms.

Usage

1
ny_tags(q, filter = NULL, max = 25)

Arguments

q

Your search query.

filter

If you do not specify a value for filter (see the Optional Parameters), your query will be matched to tags in all four Times dictionaries: subject (Des), geographic location (Geo), organization (Org) and person (Per). You can specify moret than one in a vector.

max

Maximum number of results to return.

Examples

1
2
3
4
5
## Not run: 
nytimes_key("xXXxxXxXxXXx")
trump <- ny_tags("Trump")

## End(Not run)

news-r/nytimes documentation built on Feb. 28, 2020, 4:49 a.m.