Learn R Programming

MapGAM (version 1.3)

beertweets: Geocoded Tweets with Beer Indicator

Description

Geocoded tweets from Twitter, with an indicator variable for any mention of beer, time stamp, and state of origin.

Usage

data(MAmap)

Arguments

Format

A data frame with 10000 observations on 5 variables:

beer

1 for tweets about beer, 0 for other tweets.

longitude

geocoded longitude.

latitude

geocoded latitude.

state

a factor with the name of the state.

time

a list of POSIXlt format dates and times for the tweets.

Details

A sample of geocoded tweets from within in the contiguous US, from June to October of 2012. Tweets mentioning beer (cases) are oversampled by a factor of 100. Geocoding is typically at the level of city or town; tweets that could not be geocoded were excluded from this data set.

Examples

Run this code
data(beertweets)
attach(beertweets)
plot(longitude,latitude,col=beer+1)  # beer in red, non-beer in black

Run the code above in your browser using DataLab