geo_tags: Create geo tags

Description Usage Arguments Value Examples

View source: R/geoparsing.r

Description

Uses the newsmap package to create geo tags. Currenly only simple dictionary matching is used.

Usage

1
2
geo_tags(txt, min_freq = NA, top_n = NA, batchsize = 10000,
  with_model = F)

Arguments

txt

A character vector with texts

min_freq

Minimum frequency of matches in the geo dictionary

top_n

If used, return only the top n tags

batchsize

Calculation is performed in batches

Value

A character vector of length txt with geo tags, concatenated with a komma delimiter

Examples

1
geo_tags('Paris Germany Berlin Leiden')

kasperwelbers/restecode documentation built on Feb. 12, 2020, 11:39 a.m.