1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Source: cnet-data-portal (MIT, mclement18)
# File: app/utils/calculation_functions.R
# Lines: 149-180
#
# Verbatim copy — do not modify. See generate_fixtures.R for the
# standalone version used to produce golden test values.
{
# Check for the presence of the correct columns
allColumns <- == 4
if ( == 1 & == 4 & allColumns) {
# Split df
stdCurveId <- df %>%
reps <- df %>%
# Correct values if there is a std curve id
if (! & stdCurveId > 0) {
stdCurve <-
reps %<>%
}
# Run calculation function (either mean or sd)
return(
)
}
}