bgg_merge {bggAnalytics} | R Documentation |
This allows for merging data from two bggAPI objects. Namestyle is inherited
from x
and columns from y$data
are added to x$data
(unless they are already there).
bgg_merge(x, y, ...)
x , y |
objects that inherit from |
... |
other arguments passed to |
A data.table with variables from both x
and y
.
sr <- bggSearch$new("Terraforming Mars")
gm <- bggGames$new(sr$ids)
gm$expand(c("name", "type", "rank"))
bgg_merge(sr, gm)