omit_derived_vars: Omit derived variables from a data.frame

Description Usage Arguments Value See Also Examples

View source: R/utils-class.R

Description

In the attribute data of any inheritances of Entity, variables that have a . prefix such as .past_partner_id is considered as a derived variable. It is normally a variable that didn't belong to the original data that used to populate the object in the first place. These derived variables usually get created as the simulation evolves and past outcomes of entities get recorded.

Usage

1
2
3

Arguments

.data

a data.frame object.

Value

the input object with out columns that have . as prefix to their names.

See Also

normalise_derived_vars

Examples

1
2
x <- data.frame(a = 1, b = 2, .c = 3)
omit_derived_vars(x)

dymium-org/dymiumCore documentation built on July 18, 2021, 5:10 p.m.