R: Extract and modify variables from population or sample data...
get_set-methods
R Documentation
Extract and modify variables from population or sample data stored in an
object of class simPopObj-class.
Description
Using sampsamp<- it is possible to extract or
rather modify variables of the sample data within slot data in slot
sample of the simPopObj-class-object. Using
poppop<- it is possible to extract or rather
modify variables of the synthetic population within in slot data in
slot sample of the simPopObj-class-object.
Arguments
obj
An object of class simPopObj-class
var
variable name or index for the variable in slot 'samp' of object
with the slot name to be accessed. If NULL, the entire dataset
(sample or population) is returned.
value
Content replacing whatever the variable in slot var in
obj currently holds.
Value
Returns an object of class simPopObj-class with the
appropriate replacement.