map_basic: Produce a basic interactive map

Description Usage Arguments Value Examples

Description

A function to easily copy data into R from a spreadsheet. This should not be used within a reproducible work flow, instead it should only be used on an ad-hoc basis (note: I'm not aware of the original author of this function, it was taken directly from a stack overflow answer)

A function to easily copy data into R from a spreadsheet. This should not be used within a reproducible work flow, instead it should only be used on an ad-hoc basis (note: I'm not aware of the original author of this function, it was taken directly from a stack overflow answer)

Usage

1
2
3
4
5
map_basic(postcodes = NULL, minzoom = NULL, maxzoom = NULL,
  include.popup = TRUE)

map_basic(postcodes = NULL, minzoom = NULL, maxzoom = NULL,
  include.popup = TRUE)

Arguments

postcodes

a character vector containing postcodes to map

minzoom

a numeric defining minimum map zoom

maxzoom

a numeric defining maximum map zoom

include.popup

a logical indicating if postcodes should be included as a popup

postcodes

a character vector containing postcodes to map

minzoom

a numeric defining minimum map zoom

maxzoom

a numeric defining maximum map zoom

include.popup

a logical indicating if postcodes should be included as a popup

Value

a data.frame consisting of data copied to clipboard

a data.frame consisting of data copied to clipboard

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
map_basic(c("tw12ju", "bs29rq"))

# alternatively copy a list of postcodes to your clipboard (i.e. highlight postcodes in spreadsheet and press ctrl + c) and use function with no arguments

map_basic()
# first copy data to clipboard (i.e. highlight data in spreadsheet and press ctrl + c)

# apply function to read data from clipboard into R

data = read_from_clipboard()

DanielGardiner/PHEQuickMap documentation built on May 31, 2019, 9:59 a.m.