Description Usage Arguments Value Author(s) See Also Examples
View source: R/CSmosquitoSp_analysis.R
This function perform spatial analysis for a selected AOI using data from the CSmosquitoSp DataBase
1 2 | CSmosquitoSp.analysis(input_db, aoi, start_date, end_date, method = "CM",
full_clean = FALSE, aoi_name = NULL, ...)
|
input_db |
DataFrame. Input CSmosquitoSp DataBase imported using function |
aoi |
Character. Area Of Interest where to perform the spatial analysis. |
start_date |
Character. Input start date, either an object of class |
end_date |
Character. Input end date, either an object of class |
method |
Character. Method to be used for the analysis. The following options are supported: 'CM' (Class Median), 'RC' (ReClass) (default to 'CM'). |
full_clean |
Logical. Wheter the full cleaning of the input DataBase should be performed prior the analysis. |
aoi_name |
Character. Name for the Area Of Interest when 'aoi' argument is supplied as external file. |
... |
Additional arguments to be passed through to function |
The function returns an object of class CSmosquitoSp.obj
containing the following slots:
points Report spatial points used for the analysis
aoi Spatial polygons of the selected Area Of Interest containing the results from the spatial analysis
aoi_name Name of the selected Area Of Interest
start_date Start day selected for the analysis
end_date End day selected for the analysis
method Method used for the analysis (currently 'CM' and 'RC' are supported)
Federico Filipponi, Mattia Manica
CSmosquitoSp.plot
CSmosquitoSp.export
CSmosquitoSp.import
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# perform CSmosquitoSp spatial analysis
for the metropolitan area of the city of Rome
CSMS_roma <- CSmosquitoSp.analysis(input_db=input_db,
aoi="Roma", start_date="2017-09-01", end_date="2017-09-01")
# perform CSmosquitoSp spatial analysis using the 'full_clean' option
for the metropolitan area of the city of Rome
CSMS_roma_full_clean <- CSmosquitoSp.analysis(input_db=input_db,
aoi="Roma", start_date="2017-09-01", end_date="2017-09-01", full_clean=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.