add_row_col_meta | R Documentation |
After calling add_psut_matnames()
, call this function
to add rownames
, colnames
, rowtypes
, and coltypes
columns to .tidy_iea_df
.
add_row_col_meta(
.tidy_iea_df,
product = IEATools::iea_cols$product,
flow = IEATools::iea_cols$flow,
matnames = IEATools::mat_meta_cols$matnames,
U = IEATools::psut_cols$U,
U_EIOU = IEATools::psut_cols$U_eiou,
R = IEATools::psut_cols$R,
V = IEATools::psut_cols$V,
Y = IEATools::psut_cols$Y,
B = IEATools::psut_cols$B,
industry_type = IEATools::row_col_types$industry,
product_type = IEATools::row_col_types$product,
sector_type = IEATools::row_col_types$sector,
resource_type = IEATools::row_col_types$resource,
rownames = IEATools::mat_meta_cols$rownames,
colnames = IEATools::mat_meta_cols$colnames,
rowtypes = IEATools::mat_meta_cols$rowtypes,
coltypes = IEATools::mat_meta_cols$coltypes
)
.tidy_iea_df |
a data frame containing column |
flow , product |
See |
matnames |
the name of the column in |
R , U , U_EIOU , V , Y , B |
See |
industry_type , product_type , sector_type , resource_type |
See |
rownames , colnames , rowtypes , coltypes |
See |
If .tidy_iea_df
already contains all of rownames
, colnames
, rowtypes
, and coltypes
,
.tidy_iea_df
is returned without modification.
If .tidy_iea_df
contains some but not all of rownames
, colnames
, rowtypes
, or coltypes
,
an error is returned.
.tidy_iea_df
with additional columns named
rowname
, colname
,
rowtype
, and coltype
.
library(dplyr)
load_tidy_iea_df() %>%
add_psut_matnames() %>%
add_row_col_meta()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.