featured_event: Find featured events

Description Usage Arguments Value References Examples

View source: R/featured-events.R

Description

List the featured events for a location, as curated by the Yelp staff.

Usage

1
2
3
featured_event(location = NULL, latitude = NULL, longitude = NULL,
  locale = get_yelp_locale(),
  access_token = Sys.getenv("YELP_ACCESS_TOKEN", NA))

Arguments

location

A string describing the location.

latitude

A number representing the latitude to search close to.

longitude

A number representing the longitude to search close to.

locale

A string naming the locale. See SUPPORTED_LOCALES for allowed values.

access_token

A string giving an access token to authenticate the API call. See get_access_token.

Value

A data frame with 26 columns. Each row corresponds to one event.

References

https://www.yelp.com/developers/documentation/v3/event_search

Examples

1
2
3
## Marked as don't test because an access token is needed
the_main_event <- featured_event("san francisco")
if(interactive()) View(the_main_event) else str(the_main_event)

richierocks/yelp documentation built on Oct. 17, 2018, 2:21 a.m.