View source: R/machine_functions.R
read_all_eta_files | R Documentation |
This function reads the files in eat_fin_paths
and creates a data frame of important efficiency and other variables.
read_all_eta_files( eta_fin_paths, efficiency_tab_name = PFUWorkflow::machine_constants$efficiency_tab_name, year = IEATools::iea_cols$year, .values = IEATools::template_cols$.values )
eta_fin_paths |
A list of the file paths to machine excel files containing
FIN_ETA front sheets, and therefore usable data.
Created by calling the |
efficiency_tab_name |
See |
year |
See |
.values |
See |
Note that eta_fin_paths
should typically be a list of
file paths, each a character string.
But eta_fin_paths
can be a single character string (not a list),
in which case it will be interpreted as a directory
containing files that have Eta.fu and Phi.u values.
When eta_fin_paths
is a single character string (not a list),
the directory will be interrogated for files,
a list of file paths constructed, and
all files read.
get_eta_filepaths()
is called internally before
reading the files and creating the data frames.
A data frame containing all Eta.fu and Phi.u values present in all Machine excel files, with the following column names: "Country", "Energy.type", "Last.stage", "Method", "Machine", "Eu.product", "Quantity", "Year", "Value".
read_all_eta_files(eta_fin_paths = sample_machine_workbook_path())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.