Variable class
Variable class
Public fields
- dataset
- Datasetobject.
- index
- charactervalue.
- total
- numericvalue.
- units
- charactervalue.
- legend
- Legendobject.
- provenance
- Provenance object. 
Methods
Method new()
Create a Variable object.
Usage
Variable$new(dataset, index, total, units, legend, provenance)Arguments
- dataset
- Datasetvalue.
- index
- characteror- integervalue.
- total
- numericvalue.
- units
- charactervalue.
- legend
- Legendobject.
- provenance
- Provenance object. 
Method repr()
Generate a character summarizing the representation of the object.
Method render()
Render variable on map.
Arguments
- x
- leaflet::leaflet()object.
- id
- characteridentifier for map pane.
- zindex
- numericz-index for ordering.
- visible
- logicalshould the variable be visible?
Returns
leaflet::leaflet() object.
Method update_render()
Update rendering of variable on map.
Arguments
- x
- leaflet::leafletProxy()object.
- id
- characteridentifier for map pane.
- zindex
- numericz-index for ordering.
- visible
- logicalshould the variable be visible?
Returns
leaflet::leaflet() object.