matchResultServer: Shiny module server for generating match results output

View source: R/matchResult.R

matchResultServerR Documentation

Shiny module server for generating match results output

Description

Carries out matching and returns a match result reactive object

Usage

matchResultServer(id, refdata, inputdata, params, sourcecol)

Arguments

id

Character ID for specifying namespace, see shiny::NS.

refdata

Reactive refdata dataset as a data.table.

inputdata

Reactive data.table of the comparison dataset, e.g from customDatasetServer.

params

Reactive parameters data, e.g. from matchLinkServer.

sourcecol

Name for the source key column of the joined dataset.

Details

The module initializes a results reactive values list containing NULL values and whenever new inputdata is passed in (clearing previous results). The matching doesn't run until a valid params reactive object is provided, which will call upon the underlying handler matchPair. If successful, the module updates and returns the results reactive values list object with results$params results$intermediate results$pair results$matchtable. Though results$matchtable is rendered in this module's UI with its own download handler, it and the rest are relevant data necessarily forwarded to matchPlotServer.

Value

Reactive values containing params, intermediate results, pair, and matchtable.


avucoh/DIVE documentation built on Aug. 29, 2023, 6:02 p.m.