Description Usage Arguments Details Value Author(s) Examples
Loads in longitude and latitude data in the form of a matrix or data frame and extracts useful measures to be passed to other functions . Data must be in format of lon then lat. Option to input source data in the same format.
1 | LoadData(Data = mydata, sources = "NULL")
|
Data |
The longitude and latitude point pattern data on which the model will run. MUST be inputted as a matrix or data.frame with two columns, longitude then latitude. |
sources |
Defaults to "NULL" which means that there will be no point sources loaded. If sources are to be loaded they MUST be inputted as a matrix or data frame with two columns, longitude then latitude. |
This function is the essential starting point of the package Rgeoprofile. This ensures data is loaded in the correct format and then extracts useful information from this data by which the maps and model can be generated.
Data |
A matrix with two columns containing the raw data |
datax |
A vector of londitude values found in Data |
datay |
A vector of latitude values found in Data |
n |
The length of Data |
MCMCcols2 |
A sample of colours to be used by the MCMC later |
sources |
If sources is not set to "NULL" the full matrix of sources |
M.D. Stevenson
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 | ### Load in data with no sources
### NOTE YOU NEED TO LOAD IN A DATAFILE CALLED mydata here...
## Not run:
LoadData(Data = mydata, sources = "NULL")
### Load in data with sources
LoadData(Data = mydata, sources = mysources)
### Check length of data
n
### Check data file
head(Data)
### Check length of datax
length(datax)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.