overwrite() rbind()s the data frames lhs and rhs,
removing any duplicate lines, which are determined without regard to the
columns in except.
Examples
require(dplyr)
data <- data.frame(expand.grid(UPPER = LETTERS[1:2],
lower = letters[24:26]),
value = 1:6)
data
#> UPPER lower value
#> 1 A x 1
#> 2 B x 2
#> 3 A y 3
#> 4 B y 4
#> 5 A z 5
#> 6 B z 6
data %>%
filter(lower == "y") %>%
mutate(value = value * 10) %>%
overwrite(data)
#> UPPER lower value
#> 1 A y 30
#> 2 B y 40
#> 3 A x 1
#> 4 B x 2
#> 5 A z 5
#> 6 B z 6