calculateRatio | R Documentation |
Changes the value of variables given in numerators
by dividing by
denominator
and multiplying conversionFactor
. Sets unit
of these variables to newUnit
.
calculateRatio(
data,
numerators,
denominator,
newUnit = "1",
conversionFactor = 1
)
data |
A quitte object. |
numerators |
A character vector. Entries in the variable column of data. |
denominator |
A single string. An entry in the variable column of data. |
newUnit |
A single string. |
conversionFactor |
A single numerical value. |
A quitte object with changed values and new unit. Unused levels are dropped.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.