extraire: A function to get the long urls in tweets

Description Usage Arguments Examples

Description

This function takes the output of the getURL() function of the package "RCurl" and it returns the long_url of given shortened urls. The credit for this function should be given to Arthur Charpentier, who wrote this post: http://www.r-bloggers.com/r-twitter-and-urls/

Usage

1
extraire(entree, motif)

Arguments

entree

The word that indicates where the long_url starts

motif

The word that indicates where the long_url ends

Examples

1
2
3
4
 ## Not run: 
res <- try(extraire(long_urls,"\r\nlocation: (.*?)\r\nserver"))

## End(Not run)

CasAndreu/ccceR documentation built on May 6, 2019, 9:28 a.m.