Learn R Programming

HelpersMG (version 2026.2.28)

Tools for Various R Functions Helpers

Description

Contains miscellaneous functions useful for managing 'NetCDF' files (see ), get moon phase and time for sun rise and fall, tide level, analyse and reconstruct periodic time series of temperature with irregular sinusoidal pattern, show scales and wind rose in plot with change of color of text, Metropolis-Hastings algorithm for Bayesian MCMC analysis, plot graphs or boxplot with error bars, search files in disk by there names or their content, read the contents of all files from a folder at one time.

Copy Link

Version

Install

install.packages('HelpersMG')

Monthly Downloads

827

Version

2026.2.28

License

GPL-2

Maintainer

Marc Girondot

Last Published

February 28th, 2026

Functions in HelpersMG (2026.2.28)

MovingWindow

Return a moving average of a vector.
NagelkerkeScaledR2

Return the scaled R2 defined by Nagelkerke (1991)
Probability_Best_Model_WAIC

Return the probability of models compared with loo being the best
RM_delete

Delete a results managment or a result within a results managment from an object
RM_add

Create a results managment or add a value in a results managment to an object
MHalgoGen

Monte-Carlo Markov-chain with Metropolis-Hastings algorithm
LD50_MHmcmc_p

Generates set of parameters to be used with LD50_MHmcmc()
RM_duplicate

Duplicate a results managment within an object.
RM_list

Return the list of results managment of an object.
RM_get

Get a value in a results managment to an object
asc

Return the codes (in UTF-8) of a string
RectangleRegression

Return parameters of rectangle regression
RandomFromHessianOrMCMC

Random numbers based on Hessian matrix or MCMC
addS3Class

Add a S3 class to an object.
as.quantiles

Extract quantile distribution from mcmcComposite object
dSnbinom

Distribution of the sum independent negative binomial random variables.
SEfromHessian

Standard error of parameters based on Hessian matrix
ScalePreviousPlot

Return the scale of the previous plot
as.mcmc.mcmcComposite

Extract mcmc object from a mcmcComposite object
barplot_errbar

Plot a barplot graph with error bar on y
cArrows

Draw curved lines with arrowhead
convert.tz

Convert one Date-Time from one timezone to another
as.parameters

Extract parameters from mcmcComposite object
cutter

Distribution of the fitted distribution without cut.
char

Return the characters defined by the codes
compare

Run a shiny application for basic functions of comparison
compare_AIC

Compares the AIC of several outputs
compare_AICc

Compares the AICc of several outputs
compare_BIC

Compares the BIC of several outputs
duplicated_packages

List the duplicated packages with their locations
ellipse

Plot an ellipse
contingencyTable.compare

Contingency table comparison using Akaike weight
flexit

Return the flexit
fitdistrquantiles

Parameters of beta, normal or gamma distribution based on quantiles.
local.search

Return path of file searched for in local disk based on its file name
list.packages

List the installed packages with their locations
logLik.LD50

Return Log Likelihood of a fit generated by LD50
logLik.compareAIC

Return Log Likelihood generated by FormatCompareAIC
ind_long_lat

Return or the index in ncdf object from lat/longitude or inverse
format_ncdf

Return an array with ncdf data
modifyVector

Modifies Elements of a Vector
modeled.hist

Return the theoretical value for the histogram bar
index.periodic

Estimate indices in periodic timeseries based on anchored minimum and maximum
from_min_max

Distribution from minimum and maximum
logLik.cutter

Return log likelihood of a cutter fitted model
dbeta_new

Density for the Beta distributions.
iCutter

Run a shiny application to fit bone section
d

Write an ASCII Representation of a vector object
dggamma

Generalized gamma distribution.
minmax.periodic

Search for minimum and maximum indices in periodic timeseries
merge.mcmcComposite

Merge two mcmcComposite results
newmap.scale

Add Scale to Existing Unprojected Map
invlogit

Return the inverse logit
inside

Search a string within files of a folder
dcutter

Distribution of the fitted distribution without cut.
plot.PriorsmcmcComposite

Plot a prior defined with setPriors function
plot.cutter

Plot results of cutter that best describe distribution
plot.IconoCorel

Clean the dataframe before to be used with IC_threshold_matrix
r2norm

Random generation for Gaussian distributions different at left and right
openwd

Open a finder window with current working directory in MacOS X and windows
plot.LD50

Plot results of LD50() that best describe LD50
rcutter

Random values of unobserved values of cut distribution.
qvlmer

Quasi Variances for lmer Model Coefficients
moon.info

Moon phase based on a date
dnbinom_new

Random numbers for the negative binomial distribution.
newcompassRose

Display a compass rose
print.cutter

Print results of cutter that best describe distribution
symbol.Male

Plot a male symbol in the plotting region
predict.LD50

Estimate survival according to doses
symbol.Female

Plot a female symbol in the plotting region
plot_errbar

Plot a xy graph with error bar on x and/or y
series.compare

Data series comparison using Akaike weight
symmetricize

Make a matrix symmetric
rnbinom_new

Random numbers for the negative binomial distribution.
tide.info

Annual tide calendar for one particular location
wget

Download a file from internet and save it locally
specify_decimal

Return a number as character with specified number of decimals
tnirp

Read an ASCII text representation of a named or not vector object
similar

Test if two vectors contains the same elements independently of their order
plot_add

Add a plot to a previous one
plot.mcmcComposite

Plot the result of a mcmcComposite object
logit

Return the logit
setPriors

Set priors for MHalgoGen()
universalmclapply

Run the function FUN on X using parallel computing
read_folder

Read files present in a folder and creates a list with the content of these files
show_name

Show the name of a point
summary.mcmcComposite

Summarize the result of a mcmcComposite object
sun.info

Estimate the time of sunrise and sunset according to longitude, latitude and date
rmnorm

Generate random numbers from the multivariate normal distribution
ExtractAIC.glm

Return AIC, AICc or BIC from a glm object
DIx

Return an index of quantitative asymmetry and complexity named Developmental Instability Index (DIx)
HelpersMG-package

Tools for Environmental Analyses, Ecotoxicology and Various R Functions
LD50

Estimate the parameters that best describe LD50
LD50_MHmcmc

Metropolis-Hastings algorithm for LD50
IC_clean_data

Clean the dataframe before to be used with IC_threshold_matrix
FormatCompareAIC

Format data to be used with compare_AIC()
ChangeCoordinate

Return a value in a changed coordinate
IC_threshold_matrix

Calculate correlation matrix
IC_correlation_simplify

Simplify the correlation matrix