powered by
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).
x
y$data
x$data
bgg_merge(x, y, ...)
A data.table with variables from both x and y.
y
objects that inherit from bggAPI class.
bggAPI
other arguments passed to merge.
merge
sr <- bggSearch$new("Terraforming Mars") gm <- bggGames$new(sr$ids) gm$expand(c("name", "type", "rank")) bgg_merge(sr, gm)
Run the code above in your browser using DataLab