Package: quitte 0.3138.0

Michaja Pehl

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

A collection of functions for easily dealing with quitte-style data frames, doing multi-model comparisons and plots.

Authors:Michaja Pehl [aut, cre], Nico Bauer [aut], Jérôme Hilaire [aut], Antoine Levesque [aut], Gunnar Luderer [aut], Anselm Schultes [aut], Jan Philipp Dietrich [aut], Oliver Richters [aut]

quitte_0.3138.0.tar.gz
quitte_0.3138.0.zip(r-4.5)quitte_0.3138.0.zip(r-4.4)quitte_0.3138.0.zip(r-4.3)
quitte_0.3138.0.tgz(r-4.4-any)quitte_0.3138.0.tgz(r-4.3-any)
quitte_0.3138.0.tar.gz(r-4.5-noble)quitte_0.3138.0.tar.gz(r-4.4-noble)
quitte_0.3138.0.tgz(r-4.4-emscripten)quitte_0.3138.0.tgz(r-4.3-emscripten)
quitte.pdf |quitte.html
quitte/json (API)

# Install 'quitte' in R:
install.packages('quitte', repos = c('https://pik-piam.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/pik-piam/quitte/issues

Datasets:

On CRAN:

8.14 score 35 packages 163 scripts 84 exports 65 dependencies

Last updated 1 months agofrom:3c12640c0a. Checks:OK: 1 ERROR: 4 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 08 2024
R-4.5-winERRORNov 08 2024
R-4.5-linuxERRORNov 08 2024
R-4.4-winERRORNov 08 2024
R-4.4-macNOTENov 08 2024
R-4.3-winERRORNov 08 2024
R-4.3-macNOTENov 08 2024

Exports:add_countrycodeadd_countrycode_add_remind_timesteps_columnsadd_stacked_dodged_xposadd_timesteps_columnsaggregate_mapas.quittebin_distributebin_distribute_sizescalc_addVariablecalc_addVariable_calc_growthratecalc_modecalc_quantilescalc_quantiles_calc_stacked_dodged_xlabelscalcAddVariablecalcCumulatedDiscountcalcDecompEffcalcDecompEff_scencalcMitigationCostcartesiancharacter.data.framecharacter.data.frame_check_quittechooseFilterdf_populate_rangedf_variationdf.2.named.vectordf.as.listduplicateduplicate_factor.data.framefactor.data.frame_factorisegetColValuesgetModelsgetPeriodsgetRegsgetScenariosgetVarsgg_colour_hueggplot_bar_remind_vtsggplot_bar_stacked_dodgedggplot_bar_vtsinline.data.frameinterpolate_missing_periodsinterpolate_missing_periods_is.quitteISOyearlist_to_data_framelist_to_data_frame_madrat_mulemagclass_to_tibblemake.ISOyearmif2rdsmutate_textorder.levelsorder.levels_overwriteprepQuitteForScatterquitte2quantilesquitteSortread_mif_headerread.gdxread.quitteread.snapshotremoveColNareplace_columnreplace_column_reportDuplicatesrevalue.levelsrevalue.levels_seq_rangesetXorsignrangestrtrimcommonsum_totalsum_total_toolExtractSortScaleQuitteunique_or_levelswrite.IAMCcsvwrite.IAMCxlsxwrite.mif

Dependencies:abindbitbit64cellrangerclicliprcolorspacecountrycodecpp11crayondata.tabledplyrfansifarverfilelockforcatsgenericsggplot2gluegmsgtablehmsisobandlabelinglatticelazyevallifecyclelubridatemagclassmagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigplyrprettyunitsprogresspurrrR6RColorBrewerRcppreadrreadxlrematchreshape2rlangscalesstringistringrtibbletidyrtidyselecttimechangetzdbutf8vctrsviridisLitevroomwithrwritexlyamlzoo

REMIND/IAM Data Analysis Using quitte

Rendered fromquitte-data-analysis.Rmdusingknitr::rmarkdownon Nov 08 2024.

Last update: 2024-10-09
Started: 2019-09-03

Readme and manuals

Help Manual

Help pageTopics
The quitte R packagequitte-package quitte
Add country codeadd_countrycode add_countrycode_
Bar plots with variable time stepsadd_remind_timesteps_columns add_timesteps_columns ggplot_bar_remind_vts ggplot_bar_vts
Aggregates or disaggregates a data frameaggregate_map
Distribute into Equal Binsbin_distribute bin_distribute_sizes
Calculate new variablescalc_addVariable calc_addVariable_
Calculates the growth rate in '%/yr' for variablescalc_growthrate
Calculate the mode of a samplecalc_mode
Sample Quantilescalc_quantiles calc_quantiles_
Calculate new variablecalcAddVariable
Calculates the cumulated discounted time seriescalcCumulatedDiscount
Decomposes a change in a variable based on the changes of its factors (Kaya-like)calcDecompEff calcDecompEff_scen
Calculate mitigation costscalcMitigationCost
Generate Cartesian Product from Vectorscartesian
Changes factor columns of a data frame into character columnscharacter.data.frame character.data.frame_
Check IAMC-style data frame for inconsistencies.check_quitte
Allows to interactively filter data from quitte objectchooseFilter
Populate Data With Sequence Along Rangedf_populate_range
Data Frame Variationdf_variation
Data frame to named vectordf.2.named.vector
Data Frame as Listdf.as.list
Duplicate rowsduplicate duplicate_
(Re-) Factorise factor and character columns in data framefactor.data.frame factor.data.frame_
Factorisefactorise
Retrieves values from one column of a quitte objectgetColValues
Retrieves models from a quitte objectgetModels
Retrieves periods from a quitte objectgetPeriods
Retrieves regions from a quitte objectgetRegs
Retrieves scenarios from a quitte objectgetScenarios
Retrieves variable names from a quitte objectgetVars
Get n Coloursgg_colour_hue
Stacked and dodged bar plotsadd_stacked_dodged_xpos calc_stacked_dodged_xlabels ggplot_bar_stacked_dodged
Convert a vector of stings to a data frameinline.data.frame
Interpolate missing periodsinterpolate_missing_periods interpolate_missing_periods_
speedily converting years to POSIXct valuesISOyear
Convert mapping list to data framelist_to_data_frame list_to_data_frame_
Madrat Mulemadrat_mule
Make a Tibble of a Magclassmagclass_to_tibble
MIF2RDS convertermif2rds
Uses mutate based on a character vector#'mutate_text
Order data frame factor levels.order.levels order.levels_
Replace rows in a data frame with new valuesoverwrite
selects two variables from a long format Quitte and puts them into a wide format QuitteprepQuitteForScatter
quitte example dataquitte_example_data
quitte example data with three models (REMIND, GCAM, MESSAGEix) and two scenarios (Current Policies, Delayed transition)quitte_example_dataAR6
Class "quitte" ~~~as.quitte as.quitte,character-method as.quitte-methods is.quitte quitte-class
calculate quantilesquitte2quantiles
Sorts a quitte object in a standardized way: model -> scenario -> variable -> unit -> region -> periodquitteSort
Read .mif Headerread_mif_header
Read item from '.gdx' file as quitte data frameread.gdx
Read IAMC-style .csv or .xlsx files, or object from rds file.read.quitte
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 head, tail and grep are on your system, a pre-filtering improves performance for csv files.read.snapshot
REMIND time stepsremind_timesteps
Removes all NA columns of a data frameremoveColNa
Replace data frame columnreplace_column replace_column_
Checks for duplicates in quitte objectreportDuplicates
Revalue data frame factor levels.revalue.levels revalue.levels_
Sequence from a Rangeseq_range
Set XorsetXor
Sign Rangesignrange
Trim common portions from both sides of a vector of stringsstrtrimcommon
Sum over one dimension of a data framesum_total sum_total_
prepare data for plotstoolExtractSortScaleQuitte
Unique or levelsunique_or_levels
Write .xlsx filewrite.IAMCxlsx
Write .mif filewrite.IAMCcsv write.mif