rtCreateGrid: create a grid array to represent a spatial, sex & age...

Description Usage Arguments Value Examples

Description

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.

Usage

1
rtCreateGrid(nY = 3, nX = 4, sexes = c("F", "M"), nAge = 2, fill = 0)

Arguments

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

Value

a named array with the specified dimensions

Examples

1
aGrid <- rtCreateGrid( nY=3, nX=4,nAge=2, fill=0 )

AndySouth/rtsetse documentation built on May 5, 2019, 6:02 a.m.