# Source: cnet-data-portal (MIT, mclement18)
# File: app/utils/calculation_functions.R
# Lines: 266-282
#
# 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
if ( == 1 & == 2) {
dividend <- df %>%
divisor <- df %>%
# Check for presence of both dividend and divisor
if (! & divisor != 0) {
return(
dividend / divisor
)
}
}
# If nothing is returned, return NA
}