data("popIT")
it <- IT(data = popIT, unit = "provincia", year = "2019")
### Adding two varaibles
# \donttest{
it2 <- IT(data = popIT, unit = "provincia", year = "2019",
add = ~I(maschi/totale) + I(femmine/totale) )
### Adding to variables and names
it3 <- IT(data = popIT, unit = "provincia", year = "2019",
add = ~I(maschi/totale) + I(femmine/totale),
new_var_names = c("Per_Maschi", "Per_Femmine") )
# }
Run the code above in your browser using DataLab