rtCreateRecord: create a record array to store a daily record for a spatial,...

Description Usage Arguments Value Examples

Description

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))

Usage

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

Arguments

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

Value

a named array with the specified dimensions

Examples

1
aRecord <- rtCreateRecord( nDay=2, nY=3, nX=4,nAge=2, fill=0 )

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