Learn R Programming

twitteR (version 0.99.19)

trend-class: Class "trend": A class to represent Twitter trends

Description

Provides a model representing trends from Twitter

Arguments

Details

The trend class is implemented as a reference class. As there should be no backwards compatibility issues, there are no S4 methods provided as with the user and status classes. An instance of a generator for this class is provided as a convenience to the user as it is configured to handle most standard cases. To access this generator, use the object trendFactory. Accessor set & get methods are provided for every field using reference class $accessors() methodology (see setRefClass for more details). As an example, the date field could be accessed using object$getDate() and object$setDate().

See Also

getTrends, setRefClass

Examples

Run this code
## It is suggested that one does not call the constructor directly,
  ## but if desired this is the appropriate structure
  zz <- trendFactory$new(name='foo', date=Sys.Date())
  zz$getName()

  ## Instead, use getTrends:
  xx <- getTrends()
  xx[[1]]$getName()

Run the code above in your browser using DataLab