geo_preprocess: Preprocess profile location data

Description Usage Arguments Value Examples

View source: R/geo_preprocess.R

Description

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

Usage

1
geo_preprocess(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_pre <- twitter_preprocess(df_tweets, ud_lang = "spanish", stopwords_lang = "es")
df_pre <- geo_preprocess(df_pre, location_country = "spain",  multi_name = c("españa","spagna"))

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