R/df_columns.R

Defines functions camel_case_to_twitter_names

tweet_columns = c("text", "favorited", "favoriteCount", "replyToSN", "created", 
                  "truncated", "replyToSID", "id", "replyToUID", "statusSource", 
                  "screenName", "retweetCount", "isRetweet", "retweeted", "longitude", 
                  "latitude")

user_columns = c("description", "statusesCount", "followersCount", "favoritesCount",
                 "friendsCount", "url", "name", "created", "protected", "verified",
                 "screenName", "location", "id", "listedCount", "followRequestSent",
                 "profileImageUrl")

camel_case_to_twitter_names = function(name) {
  tolower(gsub("([A-Z])", "_\\1", name, perl=TRUE))
}

Try the twitteR package in your browser

Any scripts or data that you put into this service are public.

twitteR documentation built on May 29, 2017, 8:26 p.m.