krsp_censusmap: Display a map of middens comparing this and previous census

Description Usage Arguments Details Value Examples

View source: R/krsp-censusmap.r

Description

This function is to meant to be used to monitor progress towards completion of the census. It shows all middens from the previous census and whether or not they have been entered in this census.

Usage

1
krsp_censusmap(con, grid, year, census, data)

Arguments

con

Connection to KRSP database

grid

character; a single grid to map

year

integer; year of census you're working on. Must be greater than 2012 when the new census table was implemented.

census

character; are you completing the may or august census?

data

logical; whether to just return the data instead of a plot.

Details

The user must identify which census they are completing. An August census will be compared to the May census from that year, while a May census will be compared to the previous year's August census.

Value

An interactive plot comparing censuses, or a data frame if data == TRUE.

Examples

1
2
3
4
con <- krsp_connect()
krsp_censusmap(con, "JO", 2016, "may", data = TRUE) %>%
  head()
krsp_censusmap(con, "KL", 2016, "august")

mstrimas/krsp documentation built on May 23, 2019, 8:16 a.m.