geoDataSource: Create sources data object in same format as observations

Description Usage Arguments Examples

Description

Simple function that ensures that sources are in the correct format required by Rgeoprofile. Takes longitude and latitude as input vectors and returns these same values in list format. If no values are input then default values are used.

Usage

1
geoDataSource(longitude = NULL, latitude = NULL)

Arguments

longitude

the locations of the potential sources in degrees longitude.

latitude

the locations of the potential sources in degrees latitude.

Examples

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

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

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