geoData: Create Rgeoprofile data object

Description Usage Arguments Examples

Description

Simple function that ensures that input data is in the correct format required by Rgeoprofile. Takes longitude and latitude as input vectors and returns these same values in list format.

Usage

1
geoData(longitude = NULL, latitude = NULL)

Arguments

longitude

the locations of the observed data in degrees longitude.

latitude

the locations of the observed data in degrees latitude.

Examples

1
2
3
4
5
6
7
# John Snow cholera data
geoData(Cholera$longitude, Cholera$latitude)

# simulated data
sim <-rDPM(50, priorMean_longitude = -0.04217491, priorMean_latitude = 
51.5235505, alpha=1, sigma=1, tau=3)
geoData(sim$longitude, sim $latitude)

bobverity/Rgeoprofile documentation built on May 12, 2019, 11:28 p.m.