Arguments
- dfResults
data.frame
A stacked summary of analysis pipeline output. Created by passing a list of results returned bySummarize()
toBindResults()
. Expected columns:GroupID
,GroupLevel
,Numerator
,Denominator
,Metric
,Score
,Flag
,MetricID
,StudyID
,SnapshotDate
.- dfMetrics
data.frame
Metric-specific metadata for use in charts and reporting. Created by passing anlWorkflow
object toMakeMetric()
. Expected columns:File
,MetricID
,Group
,Abbreviation
,Metric
,Numerator
,Denominator
,Model
,Score
, andThreshold
. For more details see the Data Model vignette:vignette("DataModel", package = "gsm")
.- strMetrics
Character vector of
MetricID
s to include indfBounds
. All unique values fromdfResults$MetricID
used by default.- dSnapshotDate
Snapshot date. Uses
dfResults$SnapshotDate
by default. If more than one snapshot date is found indfResults
, a warning is thrown and this function returnsNULL
.- strStudyID
Study ID. Uses
dfResults$StudyID
by default. If more than one snapshot date is found indfResults
, a warning is thrown and this function returnsNULL
.
Examples
dfBounds <- MakeBounds(
dfResults = reportingResults,
dfMetrics = reportingMetrics
)
#> Creating stacked dfBounds data for Analysis_kri0001, Analysis_kri0002,
#> Analysis_kri0003, Analysis_kri0004, Analysis_kri0005, Analysis_kri0006,
#> Analysis_kri0007, Analysis_kri0008, Analysis_kri0009, Analysis_kri0010,
#> Analysis_kri0011, and Analysis_kri0012
#> Warning: More than one SnapshotDate found. Returning NULL