guess_address.semnar: Guess presentation address in a 'semnar' object using OSM's...

Description Usage Arguments Details Value See Also Examples

Description

Guess presentation address in a semnar object using OSM's API for reverse geocoding

Usage

1
2
3
4
## S3 method for class 'semnar'
guess_address(object, all = FALSE)

guess_address(object, all = TRUE)

Arguments

object

an object of class semnar. See add_presentation.

all

should we be guessing all addresses (TRUE) or only missing ones (FALSE; default)?

Details

guess_address is using reverse geocoding through the API at https://nominatim.openstreetmap.org. Please check at that link for requests limits.

Value

An object of class semnar with all (all = TRUE) or the missing presentation addresses (all = FALSE) completed.

See Also

add_presentation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
library("magrittr")
out <- add_presentation(country = "England", city = "Coventry",
                        lon = -1.560843, lat = 52.384019,
                        event = "Young Researchers' Meeting",
                        title = "A workflow that most probably isn't yours",
                        link = "https://warwick.ac.uk/fac/sci/statistics/news/yrm/",
                        materials = "http://ikosmidis.com/files/ikosmidis_YRM_2019.pdf",
                        type = "presentation", institution = "University of Warwick",
                        department = "Department of Statistics",
                        venue = "Mathematical Sciences Building", room = "M1.02",
                        year = 2019, month = 5, day = 28,
                        start_hour = 16, start_min = 00,
                        end_hour = 17, end_min = 00) %>%
        add_presentation(country = "United States", city = "Stanford",
                         lon = -122.165330, lat = 37.429464,
                         event = "useR! 2016",
                         title = "brglm: Reduced-bias inference in generalized linear models",
                         link = "http://user2016.r-project.org//files/abs-book.pdf",
                         materials = "https://bit.ly/2KCBbKg",
                         type = "presentation", institution = NA, department = NA,
                         venue = "Stanford Institute for Economic Policy Research",
                         room = "Siepr 120",
                         year = 2016, month = 06, day = 29,
                         start_hour = 14, start_min = 15,
                         end_hour = 14, end_min = 35)
out$address
# Reverse geocoding
out <- guess_address(out)
out$address

semnar documentation built on July 3, 2019, 5:05 p.m.