bgg_merge {bggAnalytics}R Documentation

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

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


sr <- bggSearch$new("Terraforming Mars")
gm <- bggGames$new(sr$ids)

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

bgg_merge(sr, gm)


[Package bggAnalytics version 0.2.1 Index]