get_todays_sample_tweets {epitweetr}R Documentation

Get a sample of latest tweet geolocations

Description

Get a sample of today's tweets for evaluation of geolocation threshold

Usage

get_todays_sample_tweets(limit = 1000, text_col = "text", lang_col = "lang")

Arguments

limit

Size of the sample, default: 100

text_col

Name of the tweet field to geolocate it should be one of the following ("text", "linked_text", "user_description", "user_location", "place_full_name", "linked_place_full_name"), default: 'text'

lang_col

Name of the tweet variable containing the language to evaluate. It should be one of the following ("lang", "linked_lang", NA), default: "lang"

Details

This function will take a sample of tweets collected on the current date for testing the geolocation algorithm and giving the user the possibility to evaluate the optimal score.

In order for this function to work the search loop will have had to run on the current day and the tasks download_dependencies, update_geonames and update_languages will have had to successfully been run.

Value

Dataframe containing the sampled tweets and the geolocation metrics

See Also

download_dependencies

update_geonames

update_languages

geotag_tweets

Examples

if(FALSE){
   library(epitweetr)
   # setting up the data folder
   message('Please choose the epitweetr data directory')
   setup_config(file.choose())

   # geolocating today's tweets
   show(get_todays_sample_tweets())
}

[Package epitweetr version 0.1.28 Index]