Skip to content

All functions

ISOyear()
speedily converting years to POSIXct values
add_countrycode() add_countrycode_()
Add country code
aggregate_map()
Aggregates or disaggregates a data frame
bin_distribute() bin_distribute_sizes()
Distribute into Equal Bins
calcAddVariable()
Calculate new variable
calcCumulatedDiscount()
Calculates the cumulated discounted time series
calcDecompEff() calcDecompEff_scen()
Decomposes a change in a variable based on the changes of its factors (Kaya-like)
calcMitigationCost()
Calculate mitigation costs
calc_addVariable() calc_addVariable_()
Calculate new variables
calc_growthrate()
Calculates the growth rate in '%/yr' for variables
calc_mode()
Calculate the mode of a sample
calc_quantiles() calc_quantiles_()
Sample Quantiles
cartesian()
Generate Cartesian Product from Vectors
character.data.frame() character.data.frame_()
Changes factor columns of a data frame into character columns
check_quitte()
Check IAMC-style data frame for inconsistencies.
chooseFilter()
Allows to interactively filter data from quitte object
df.2.named.vector()
Data frame to named vector
df.as.list()
Data Frame as List
df_populate_range()
Populate Data With Sequence Along Range
df_variation()
Data Frame Variation
duplicate() duplicate_()
Duplicate rows
escape_cntrl()
Escape Control Characters
factor.data.frame() factor.data.frame_()
(Re-) Factorise factor and character columns in data frame
factorise()
Factorise
getColValues()
Retrieves values from one column of a quitte object
getModels()
Retrieves models from a quitte object
getPeriods()
Retrieves periods from a quitte object
getRegs()
Retrieves regions from a quitte object
getScenarios()
Retrieves scenarios from a quitte object
getVars()
Retrieves variable names from a quitte object
gg_colour_hue()
Get n Colours
inline.data.frame()
Convert a vector of stings to a data frame
interpolate_missing_periods() interpolate_missing_periods_()
Interpolate missing periods
list_to_data_frame() list_to_data_frame_()
Convert mapping list to data frame
looks_like_quitte()
Does a data frame match the quitte definition?
madrat_mule()
Madrat Mule
magclass_to_tibble()
Make a Tibble of a Magclass
mif2rds()
MIF2RDS converter
mutate_text()
Uses mutate based on a character vector#'
order.levels() order.levels_()
Order data frame factor levels.
overwrite()
Replace rows in a data frame with new values
pivot_periods() pivot_periods_wider() pivot_periods_longer()
Pivot Data Frame on Periods
prepQuitteForScatter()
selects two variables from a long format Quitte and puts them into a wide format Quitte
as.quitte() is.quitte()
Class "quitte" ~~~
quitte-package quitte
The quitte R package
quitte2quantiles()
calculate quantiles
quitteSort()
Sorts a quitte object in a standardized way: model -> scenario -> variable -> unit -> region -> period
quitte_example_data
quitte example data
quitte_example_dataAR6
quitte example data with three models (REMIND, GCAM, MESSAGEix) and two scenarios (Current Policies, Delayed transition)
read.gdx()
Read item from .gdx file as quitte data frame
read.quitte()
Read IAMC-style .csv or .xlsx files, or object from rds file.
read.snapshot()
Reads IAMC-style .csv or .xlsx files obtained as a IIASA snapshot into a quitte data frame, or data from rds file, allowing to filter the loaded data. If you're using a non-Windows system with head, tail and grep, a pre-filtering improves performance for csv files.
read_mif_header()
Read .mif Header
remind_timesteps
REMIND time steps
removeColNa()
Removes all NA columns of a data frame
replace_column() replace_column_()
Replace data frame column
reportDuplicates()
Checks for duplicates in quitte object
revalue.levels() revalue.levels_()
Revalue data frame factor levels.
seq_range()
Sequence from a Range
setXor()
Set Xor
signif_frac()
Round fractions only
signrange()
Sign Range
ggplot_bar_stacked_dodged() add_stacked_dodged_xpos() calc_stacked_dodged_xlabels()
Stacked and dodged bar plots
strtrimcommon()
Trim common portions from both sides of a vector of strings
sum_total() sum_total_()
Sum over one dimension of a data frame
toolExtractSortScaleQuitte()
prepare data for plots
tribbelise()
Recreate a data frame as a tribble
unique_or_levels()
Unique or levels
unquitte()
Remove quitte class atribute
useWorld()
useWorld
add_timesteps_columns() add_remind_timesteps_columns() ggplot_bar_vts() ggplot_bar_remind_vts()
Bar plots with variable time steps
write.IAMCxlsx()
Write .xlsx file
write.gdx()
Write quitte data frame to a .gdx file
write.mif() write.IAMCcsv()
Write .mif file