data("popDE")
de <- DE(data = popDE, colID = "code_state", unit = "state", matchWith = "code_full")
### Adding two varaibles
# \donttest{
de2 <- DE(data = popDE, colID = "code_state", unit = "state", matchWith = "code_full",
add = ~I(population_2020/1000) + I(population_2020/100) )
### Adding to variables and names
de3 <- DE(data = popDE, colID = "code_state", unit = "state", matchWith = "code_full",
add = ~I(population_2020/1000) + I(population_2020/100),
new_var_names = c("ratio1", "ratio2"))
# }
Run the code above in your browser using DataLab