popular: Popular

popularR Documentation

Description

Provides services for getting the most popular articles on NYTimes.com based on emails, shares, or views.

Usage

ny_popular_emailed(period = 30)

ny_popular_shared(period = 30)

ny_popular_shared_type(period = 30, type = c("email", "facebook", "twitter"))

ny_popular_viewed(period = 30)

Arguments

period

Time period: 1, 7, or 30 days.

type

Share type: email, facebook, or twitter.

Functions

  • ny_popular_emailed Returns an array of the most emailed articles on NYTimes.com for specified period of time.

  • ny_popular_shared Returns an array of the most shared articles on NYTimes.com for specified period of time.

  • ny_popular_shared_type Returns an array of the most shared articles by share type on NYTimes.com for specified period of time.

  • ny_popular_viewed Returns an array of the most viewed articles on NYTimes.com for specified period of time.

Examples

## Not run: 
nytimes_key("xXXxxXxXxXXx")
emailed <- ny_popular_emailed(7)

## End(Not run)


news-r/nytimes documentation built on Nov. 10, 2024, 9:28 a.m.