Description Usage Arguments Value Examples
rtCreateGrid
creates a named array with dimensions, y,x,sex,age.
The dimensions are named e.g. x1,x2..., y1,y2... to reduce potential for confusion.
1 | rtCreateGrid(nY = 3, nX = 4, sexes = c("F", "M"), nAge = 2, fill = 0)
|
nY |
number of y cells |
nX |
number of x cells |
sexes |
vector of sex names default=c("F","M") |
nAge |
number of ages |
fill |
what value to fill array with |
a named array with the specified dimensions
1 | aGrid <- rtCreateGrid( nY=3, nX=4,nAge=2, fill=0 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.