View source: R/extend_to_useful.R
remove_cols_from_PSUTUsefulIEAWithDetails | R Documentation |
A simple wrapper function to assist with removing
unneeded columns from the PSUTUsefulIEAWithDetails
target.
remove_cols_from_PSUTUsefulIEAWithDetails(
psut_useful_iea_with_details,
cols_to_remove,
phi_vecs,
remove_final = FALSE,
countries,
country = IEATools::iea_cols$country,
year = IEATools::iea_cols$year,
last_stage = IEATools::iea_cols$last_stage,
final = IEATools::all_stages$final
)
psut_useful_iea_with_details |
The target from which columns should be removed. |
cols_to_remove |
A string vector of columns names to be removed. |
phi_vecs |
The name of the phi vector column in |
remove_final |
A boolean that tells whether to remove Last.stage == "Final" rows.
Default is |
countries |
The countries for which this function should be applied. |
country |
The name of the |
year |
The name of the |
last_stage |
The name of the "Last.stage" column.
Default is |
final |
The string defining the final stage.
Default is |
This function enables mapping over countries.
A version of psut_useful_iea_with_details
with cols_to_remove
removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.