Learn R Programming

bggAnalytics (version 0.2.1)

bgg_merge: Merge data from two bggAPI objects

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

bgg_merge(x, y, ...)

Value

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

Arguments

x, y

objects that inherit from bggAPI class.

...

other arguments passed to merge.

Examples

Run this code

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