url_expand: Expand shortened URLs in tweets

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Helper_Functions.R

Description

Expand the shortened URLs in a deleted tweet data frame. This may take some time since every tweet has to go through the longurl.org API. Note also that many of deleted tweets have broken or wrong links - those of course cannot be expanded.

Usage

1
url_expand(tweets)

Arguments

tweets

A data frame of tweet info created with get_pw_tweets or merge_pw

Value

A vector of expanded URLs.

Author(s)

Katya Ognyanova rstats@ognyanova.net

See Also

get_pw_tweets get_pw_pol merge_pw url_domain

Examples

1
2
3
4
5
6
7
8
## Not run: 

tweet.df <- get_pw_tweets(1, 5)
tweet.df$url.exp <- url_expand(tweet.df)
 
 
## End(Not run)
 

kateto/PolitwoopsR documentation built on May 20, 2019, 7:41 a.m.