Description Usage Arguments Value Examples
rtCreateRecord
creates a named array with dimensions, day,y,x,sex,age.
calls rtCreateGrid
The dimensions are named e.g. x1,x2..., y1,y2... to reduce potential for confusion.
To fill array with sequential values after can use :
aRecord[] <- c(1:length(aRecord))
1 2 | rtCreateRecord(nDay = 2, nY = 3, nX = 4, sexes = c("F", "M"),
nAge = 2, fill = 0)
|
nDay |
number of days |
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 | aRecord <- rtCreateRecord( nDay=2, 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.