locate_tweets: Matches tweets to zipcodes

View source: R/parseTweetFiles.R

locate_tweetsR Documentation

Matches tweets to zipcodes

Description

Labels an array of geo-located tweets with state abbreviations using shapefiles provided by the Census Bureau. This function should be run after cleaning the tweets, and only works on tweets with a latitude / longitude. Any tweets without lattitude / longitude codes are labeled with NA.

Usage

locate_tweets(located_tweets)

Arguments

located_tweets

A cleaned array of tweets with latitude / longitude variables.

Value

The tweet data frame with all in US tweets labeled with a state and all others with NA

Examples

## Not run: tweets = clean_tweets(dataframe)
## Not run: located_tweets = locate_tweets(tweets)

rturn/parseTweetFiles documentation built on July 31, 2023, 3:43 p.m.