View source: R/munge_utilities.R
S_units_from_tidy | R Documentation |
S_units
matrix from a tidy data frameThe .tidydf
should be grouped as needed.
S_units_from_tidy(
.tidydf,
Product = IEATools::iea_cols$product,
Unit = IEATools::iea_cols$unit,
S_units = Recca::psut_cols$S_units
)
.tidydf |
the data frame from which an |
Product |
the name of the |
Unit |
the name of the |
S_units |
the name of the |
a data frame containing grouping variables and a new S_unit
column
library(dplyr)
library(matsindf)
library(Recca)
UKEnergy2000tidy |>
group_by(Country, Year, EnergyType, LastStage) |>
S_units_from_tidy()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.