Learn R Programming

optiRum (version 0.41.1)

Financial Functions & More

Description

This fills the gaps credit analysts and loan modellers at Optimum Credit identify in the existing R code body. It allows for the production of documentation with less coding, replicates a number of Microsoft Excel functions useful for modelling loans (without rounding), and other helpful functions for producing charts and tables. It also has some additional scales for use, including a GBP scale.

Copy Link

Version

Install

install.packages('optiRum')

Monthly Downloads

106

Version

0.41.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 4th, 2022

Functions in optiRum (0.41.1)

multiplot

Multiple plot function
odd.logit

Convert an odd into a logit
pounds_format

Currency formatter: round to nearest penny and display pounds sign.
prob.logit

Convert a probability into a logit
prob.odd

Convert a probability into odds probability
sanitise

A cleaning function for special characters
generatePDF

Convert an .Rnw file to a PDF
logit.prob

Convert a logit to probability
wordwrap

Produce a string with one word per line
logit.odd

Convert a logit to odds
thousands_format

Thousands formatter: format number with commas separating the number thousands and suffixed with a k.
optiRum

optiRum is a helper package
odd.prob

Convert an odds to probability
scaledScore

Produce a scaled score based on a logit
theme_optimum

Produce an Optimum-standard base chart
taxYear

Returns the UK financial tax year for a given date
APR

Calculates the compound interest rate for a loan
CJ.dt

Cross join two data.tables
convertToXML

Produce an XML document of a table
RATE

Calculates compounded interest rate
giniCoef

Produce a gini coefficient
giniChart

Produce a ROC curve with gini coefficient title
calcNetIncome

Calculate income after tax and benefits
PV

Calculates the present value
PMT

Calculates the repayment for a loan