R6 class storing health statistics for a list of health units.
R6 class storing health statistics for a list of health units.
Public fields
.data
A list of health units in health unit grp.
.sf
A sf storing spatial information.
.id
A character ID of object.
Methods
Method new()
Create instance of health unit grp.
Arguments
.data
(list
)
A list of health units in health unit grp.
.sf
(sf
)
A sf storing spatial information for
health units.
.id
(characer
)
A character ID of object.
Method validate()
Validate structure of health unit grp.
Usage
health_unitgrp$validate()
Get combine metadata of health unit grp.
Usage
health_unitgrp$metadata()
Get data of health unit grp.
Method combine_data()
Get combined metadata and data in single data.frame.
Usage
health_unitgrp$combine_data()
Method sf()
Get sf of health unit grp.
Method ID()
Get ID of health unit grp.
Method IDs()
Get IDs of stored health units
Method titles()
Get names of stored health units
Get stored health unit.
Usage
health_unitgrp$health_unit(id)
Arguments
id
(character(1))
Character specifying ID of object to obtain from group.
Subset health unit group.
Usage
health_unitgrp$subset(id)
Arguments
id
(character())
Character specifying ID (or IDs) of object to obtain from group.
Method get_download()
Get downloadable data.frame of health unit group.
Usage
health_unitgrp$get_download()
Method download_handler()
Get download handler function of health unit group.
Usage
health_unitgrp$download_handler()
Method clone()
The objects of this class are cloneable with this method.
Usage
health_unitgrp$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.