geo_profile: Preprocess profile location data

Description Usage Arguments Value Examples

View source: R/geo_profile.R

Description

This function preprocess profile location data adds country and city data.

Usage

1
geo_profile(df, location_country,  multi_name )

Arguments

df

twitter data frame

location_country

country name

multi_name

multiple names of country in different language

Value

df

rtweet data frame

location_country

"spain", "uk", "netherlands", "serbia and montenegro", "croatia", "france", "switzerland", "denmark" ...

multi_name

c("españa","spagna"), c(dänemark), c("republic of serbia", "srbija"), c("republic of croatia"), c("schweiz", "suisse", "suiza"), c("united kingdom", "britain") ...

Examples

1
2
df_tweets <- get_tweet_preprocess(tweets_list, location_country = "spain")
df_pre <- geo_profile(df_tweets, location_country = "spain",  multi_name = c("españa","spagna","spanje"))

BeaJJ/ComTxt documentation built on Dec. 17, 2021, 10:46 a.m.