generate_tweets {WeatherSentiment}R Documentation

Generate Random Tweets

Description

This function generates n random tweets about the weather. Each tweet consists of a randomly selected positive or negative phrase about a randomly selected weather condition.

Usage

generate_tweets(n)

Arguments

n

The number of tweets to generate

Value

A data.frame containing two columns: Date: The date of the tweet T1: The text of the tweet

Author(s)

Leila Marvian Mashhad and Andriette Bekker and Mohammad Arashi and Priyanka Nagar.

Examples

tweets <- generate_tweets(10)
print(tweets)

[Package WeatherSentiment version 1.0 Index]