typdb.data.merge: Retrieve and merge TypDB datasets

Description Usage Arguments Details Value

Description

typdb.data.merge merges data from different TypDB datasets based on the overlapping language codes (see language_ids).

Usage

1
typdb.data.merge(..., result = c("data", "mapping", "index"))

Arguments

...

Two or more TypDB dataset names

result

An option controlling what to return (see details)

Details

The result parameter controls what the function will return. If the value of this parameter is "data" (default), the merged data frame is returned. If result is "mapping", the language mappings required to perform the merge are returned instead (this is a relevant subset of language_ids data frame). Finally, if result is "index", the result is a merged data frame consisting of row numbers of the datasets that are merged together. This is useful in trackign down any language code mismatches.

The function will produce a warning if any language codes are duplicated, missing, or if there is an ambigues match. Furthermore, the column names of the resulting data frame will be disambiguated if nessesary.

Value

A data frame that is either the merged datasets, the language code mapping table or the join table indicating which rows will be joined (depending on result parameter)


IVS-UZH/TypDB documentation built on May 8, 2019, 1:40 p.m.