OpenFLUID.setAttributesR Documentation

Sets attributes values for given spatial units and attributes names

Description

Sets attributes values for given spatial units and attributes names

Usage

OpenFLUID.setAttributes(ofblob, unitclass, attrvals)

Arguments

ofblob

the simulation definition blob

unitclass

the unit class

attrvals

the data.frame of values (unit id x attribute name)

See Also

OpenFLUID.getAttributes

Examples

## Not run: 
OpenFLUID.setAttributes(ofsim,"SU",data.frame("length"=c(1,2),"width"=c(3.2,7.8),"unitid"=c("SU#18","SU#23")))

## End(Not run)