Last data update: 2014.03.03

R: A function to retrieve the most recent tweet ID from a...
get_latest_tweet_idR Documentation

A function to retrieve the most recent tweet ID from a database

Description

Given a registered database backend which contains a table of tweets, will return the ID of the most recent tweet stored in that table

Usage

get_latest_tweet_id(table_name = "tweets")

Arguments

table_name

The name of the table in the database containing tweets

Details

A wrapper around a select max(id) on the table_name

Value

The ID of the most recent tweet in the table, or a stop if the table is empty

Author(s)

Jeff Gentry

See Also

register_db_backend

Examples

   ## Not run: 
      register_sqlite_backend("sqlit_file")
      get_latest_tweet_id("rstats_tweets")
   
## End(Not run)

Results