tweet_db: tweet_db

Description Arguments Examples

Description

A data.frame holding the relevant data for the tweet database. Built by addNewTweetToDB, and used by getTweetByID and getTweetByCategory.

Arguments

tweet_text

The tweet text.

category

The category of tweet.

media_path

Optional. The path to any media/pictures you want to tweet with it.

id

An automatically generated unique identifier in your tweet_db, as generated by addNewTweetToDB.

Examples

1
2
3
4
tweet_db <- addNewTweetToDB("I like cats"     , category="animals")
tweet_db <- addNewTweetToDB("I like dogs too.", category="animals", tweet_db = tweet_db)
tweet_db <- addNewTweetToDB("I don't like sardines.", category="food", tweet_db = tweet_db)
tweet_db

bestdan/crontwit documentation built on May 30, 2019, 12:45 p.m.