data("popEU")
popEU <- popEU
euNuts2 <- EU(data = popEU, colID = "GEO",
unit = "nuts2",matchWith = "id")
str(euNuts2)
# \donttest{
euNuts2_1 <- EU(data = popEU, colID = "GEO",
unit = "nuts2",matchWith = "id",
add = ~I(male/total) + I(female/total))
str(euNuts2_1)
euNuts2_2 <- EU(data = popEU, colID = "GEO",
unit = "nuts2",matchWith = "id",
add = ~I(male/total) + I(female/total),
new_var_names = c("Per_Male", "Per_Female"))
str(euNuts2_2)
# }
Run the code above in your browser using DataLab