grapes-set-grapes.Rd
Merge two objects from right to left.
x %<-% y
x | A named list or vector |
---|---|
y | A named list or vector. Any duplicated names are detected in x will be covered by y |
a list
#> $a #> [1] 1 #> #> $b #> [1] 2 #> #> $c #> [1] 3 #> #> $d #> [1] 4 #>y %<-% x#> $b #> [1] "foo" #> #> $d #> [1] 4 #> #> $a #> [1] 1 #> #> $c #> [1] 3 #>#> $foo #> [1] "foo" #> #> $bar #> [1] 2 #>y %<-% x#> $foo #> [1] 1 #> #> $bar #> [1] 2 #>#> $a #> [1] "1" #> #> $b #> [1] 2 #> #> $c #> [1] "3" #> #> $d #> [1] 4 #>y %<-% x#> $b #> [1] "foo" #> #> $d #> [1] 4 #> #> $a #> [1] "1" #> #> $c #> [1] "3" #>#> $a #> [1] 1 #> #> $b #> [1] 2 #> #> $d #> [1] 4 #>y %<-% x # be careful, since "3" will cover on "foo" in x, then on "2" in y#> $b #> [1] 3 #> #> $d #> [1] 4 #> #> $a #> [1] 1 #>