# \donttest{
df1 <- data.frame(region = c("A", "A", "B"), value = c(10, 20, 30),
stringsAsFactors = FALSE)
df2 <- data.frame(region = c("A", "A", "B"), value = c(10, 25, 30),
stringsAsFactors = FALSE)
compare_by_group(df1, df2, group_vars = "region")
# }
Run the code above in your browser using DataLab