# Example gads
example_df <- data.frame(ID = 1:5, color = c("blue", "blue", "green", "other", "other"),
animal = c("dog", "Dog", "cat", "hors", "horse"),
age = c(NA, 16, 15, 23, 50),
stringsAsFactors = FALSE)
example_df$animal <- as.factor(example_df$animal)
gads <- import_DF(example_df)
# simple recode
gads2 <- recodeGADS(gads, varName = "animal",
oldValues = c(3, 4), newValues = c(7, 8))
Run the code above in your browser using DataLab