bgg_merge: Merge data from two bggAPI objects

Description Usage Arguments Value Examples

View source: R/bgg_tools.R

Description

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).

Usage

1
bgg_merge(x, y, ...)

Arguments

x, y

objects that inherit from bggAPI class.

...

other arguments passed to merge.

Value

A data.table with variables from both x and y.

Examples

1
2
3
4
5
6
sr <- bggSearch$new("Terraforming Mars")
gm <- bggGames$new(sr$ids)

gm$expand(c("name", "type", "rank"))

bgg_merge(sr, gm)

bggAnalytics documentation built on Sept. 24, 2021, 1:06 a.m.