.extractMostFrequentUnit | R Documentation |
Find the most common units
.extractMostFrequentUnit(data, unitColumn)
data |
A data frame (or a tibble) from |
unitColumn |
The name of the column containing units (e.g. |
df <- dplyr::tibble(
xValues = c(15, 30, 60),
xUnit = "min",
xDimension = "Time",
yValues = c(0.25, 45, 78),
yUnit = c("", "%", "%"),
yErrorUnit = c("", "%", "%"),
yDimension = "Fraction",
molWeight = 10
)
ospsuite:::.extractMostFrequentUnit(df, unitColumn = "xUnit")
ospsuite:::.extractMostFrequentUnit(df, unitColumn = "yUnit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.