data("popFR")
# \donttest{
fr <- FR(data = popFR)
### Adding two varaibles
fr2 <- FR(data = popFR,
add = ~I(population/1000) + I(population/100) )
### Adding to variables and names
fr3 <- FR(data = popFR,
add = ~I(population/1000) + I(population/100),
new_var_names = c("ratio1", "ratio2"))
# }
Run the code above in your browser using DataLab