String parsing functionalites for generating plotnames, filenames and path. Used by MarkdownReprots and ggExpress
String parsing functionalites for generating plotnames, filenames and path. Used by Stringendo and ggExpress. Complements the new CodeAndRoll2. Many functionalities were part of the formerly used CodeAndRoll (v1).
Install directly from GitHub via devtools with one R command:
# install.packages("devtools"); # If you don't have it.
require("devtools")
devtools::install_github(repo = "vertesy/Stringendo")
…then simply load the package:
require("Stringendo")
Alternatively, you simply source it from the web. This way function help will not work, and you will have no local copy of the code on your hard drive.
source("https://raw.githubusercontent.com/vertesy/Stringendo/main/R/Stringendo.R")
Parse current date, dot separated.
Paste by point
Paste by (forward) slash
Paste by underscore
Paste by dash
kollapse by point
kollapse by underscore
kollapse by (forward) slash
kollapse by dash
Simplified Paste by point
Calculate what is the actual value of the N-th percentile in a distribution or set of numbers. Useful for calculating cutoffs, and displaying them by whist()’s “vline” paramter.
Parse p-value from a number to a string.
evaluate and parse (dyn_var_caller)
Take a list of parameters and parse a string from their names and values.
Paste a dot (point) separated string from a list of inputs (that can be empty), and clean up the output string from dot multiplets (e.g: ..).
Paste OutDir from (1) a path and (2) a from a list of inputs (that can be empty), and clean up the output string from dot and forward slash multiplets (e.g: ..).
Returns the name and its value, if its not FALSE.
Returns the name and its value, if its TRUE.
Returns the name and value of each element in a list of parameters.
Returns the name and value of each element in a list of parameters.
Returns the name and value of each element in a list of parameters.