clean_data: clean_data

Description Usage Arguments Value

View source: R/cleaning_functions.R

Description

clean_data

Usage

1
2
3
4
5
6
7
8
9
clean_data(
  csv,
  emissions_conversions = NULL,
  by_month = month,
  by_enduse = enduse,
  by_hour = Hour,
  by_fuel = fuel,
  ...
)

Arguments

csv

character string of path to csv

emissions_conversions

character string of path to csv with tonne CO2-e/MWh and tonne CO2-e/therm conversion factors

by_month

designates whether to summarize data by month (the default) or omit month (NULL)

by_enduse

designates whether to summarize data by enduse (the default) or omit enduse (NULL)

by_hour

designates whether to summarize data by hour (the default) or omit hour (NULL)

by_fuel

designates whether to summarize data by fuel (the default) or omit fuel (NULL)

...

passes arguments to convert()

Value

Cleaned dataframe


jkeast/ResourceRefocus documentation built on Feb. 2, 2021, 3:35 a.m.