Bits and pieces of code to use with quitte-style data frames


[Up] [Top]

Documentation for package ‘quitte’ version 0.3128.4

Help Pages

quitte-package The quitte R package
add_countrycode Add country code
add_countrycode_ Add country code
add_remind_timesteps_columns Bar plots with variable time steps
add_stacked_dodged_xpos Stacked and dodged bar plots
add_timesteps_columns Bar plots with variable time steps
aggregate_map Aggregates or disaggregates a data frame
as.quitte Class "quitte" ~~~
as.quitte-method Class "quitte" ~~~
as.quitte-methods Class "quitte" ~~~
bin_distribute Distribute into Equal Bins
bin_distribute_sizes Distribute into Equal Bins
calcAddVariable Calculate new variable
calcCumulatedDiscount Calculates the cumulated discounted time series
calcDecompEff Decomposes a change in a variable based on the changes of its factors (Kaya-like)
calcDecompEff_scen Decomposes a change in a variable based on the changes of its factors (Kaya-like)
calcMitigationCost Calculate mitigation costs
calc_addVariable Calculate new variables
calc_addVariable_ Calculate new variables
calc_mode Calculate the mode of a sample
calc_quantiles Sample Quantiles
calc_quantiles_ Sample Quantiles
calc_stacked_dodged_xlabels Stacked and dodged bar plots
cartesian Generate Cartesian product from character vectors
character.data.frame Changes factor columns of a data frame into character columns
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 rows
duplicate_ Duplicate rows
factor.data.frame (Re-) Factorise factor and character columns in 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
ggplot_bar_remind_vts Bar plots with variable time steps
ggplot_bar_stacked_dodged Stacked and dodged bar plots
ggplot_bar_vts Bar plots with variable time steps
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_ Interpolate missing periods
is.quitte Class "quitte" ~~~
ISOyear speedily converting years to POSIXct values
list_to_data_frame Convert mapping list to data frame
list_to_data_frame_ Convert mapping list to data frame
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 data frame factor levels.
order.levels_ Order data frame factor levels.
overwrite Replace rows in a data frame with new values
prepQuitteForScatter selects two variables from a long format Quitte and puts them into a wide format Quitte
quitte The quitte R package
quitte-class Class "quitte" ~~~
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
read.snapshot Reads IAMC-style .csv files obtained as a IIASA snapshot into a quitte data frame, filtering the data. This function is helpful if the csv file is large and R runs out of memory loading it completely. This function requires head, tail and grep on your system. If not supported, use read.quitte().
read_mif_header Read .mif Header
remind_timesteps REMIND time steps
removeColNa Removes all NA columns of a data frame
replace_column Replace data frame column
replace_column_ Replace data frame column
revalue.levels Revalue data frame factor levels.
revalue.levels_ Revalue data frame factor levels.
seq_range Sequence from a Range
setXor Set Xor
signrange Sign Range
strtrimcommon Trim common portions from both sides of a vector of strings
sum_total Sum over one dimension of a data frame
sum_total_ Sum over one dimension of a data frame
toolExtractSortScaleQuitte prepare data for plots
unique_or_levels Unique or levels
write.IAMCxlsx Write .xlsx file
write.mif Write .mif file