Description Usage Arguments Value Author(s) Examples
Generate the regional monthly mean of air pollutant concentrations based on the input polygons
1 | getPolyMMean(polys,samp,tse,idF="siteid",ridF="rid",obsF="obs",dateF="date")
|
polys |
The input region polygon map object (SpatialPolygonsDataFrame) to be used the regions for generation of the regiona monthly means |
samp |
The sample spatial location map. Data format: |
tse |
Time series for the siteid and date used for generation of monthly mean. |
idF |
location id name |
ridF |
region id name |
obsF |
observed value field name. |
dateF |
Date name |
A data frame of data format: rid, year, month, mean
Lianfa Li lspatial@gmail.com
1 2 3 4 5 | #Use the PM2.5 concentration as an example.
data("samplepnt","prnside","shdSeries2014")
tpolys=tpolygonsByBorder(samplepnt,prnside)$tpolys
regionmmean=getPolyMMean(tpolys, samplepnt, shdSeries2014,"siteid", "rid", "obs","date")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.