grdfile | R Documentation |
Converts grid nodes (spatial grid) into a text file (.out) that is stored in 'input' folder. As input you should provide the spatial grid (SpatialPixelsDataFrame), with id region values at simulation grid nodes, and a list returned by funtion irates().
grdfile(rateobj, gridimage, NAval = -999)
rateobj, |
string, name of list, output of function irates() |
gridimage, |
string, name of block file, a SpatialPixelsDataFrame object |
NAval, |
numeric, integer with grid value for "No data" |
The gridded values should refer to the region id's at simulation locations (nodes). Every regions recorded in disease data file should be assigned to 1 or more grid node.
gridpars |
list parameters from block data: number rows and columns, resolution, (x,y), coordinates of the origin, NA value |
outgrid |
list vector node values, vector id of regions, and number of regions |
file |
list characters; indicating the day of data collection, filename and root folder where file is stored |
ingrid |
the SpatialPixelsDataFrame object used |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.