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 = "Product",
Unit = "Unit",
S_units = "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", "Energy.type", "Last.stage") %>%
S_units_from_tidy()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.