Learn R Programming

WeatherSentiment (version 1.0)

generate_tweets: 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)

Value

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

Arguments

n

The number of tweets to generate

Author

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

Examples

Run this code
tweets <- generate_tweets(10)
print(tweets)

Run the code above in your browser using DataLab