OpenFLUID.getAttributesR Documentation

Returns attributes values for given spatial units and attributes names

Description

Returns attributes values for given spatial units and attributes names

Usage

OpenFLUID.getAttributes(ofblob, unitclass, unitids, attrnames,
  unitidsAsRownames = TRUE)

Arguments

ofblob

the simulation definition blob

unitclass

the unit class

unitids

the vector of unit IDs

attrnames

the vector of names of the attributes

unitidsAsRownames

if TRUE rename row as unitids if FALSE add a column of unitids

Value

a data.frame (unitids x attrnames) of the attribute values

See Also

OpenFLUID.setAttributes

Examples

## Not run: 
valdf = OpenFLUID.getAttributes(ofsim,"SU",c(18,23),c("length","width"))

## End(Not run)