Learn R Programming

⚠️There's a newer version (0.41.1) of this package.Take me there.

optiRum (version 0.37.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

10

Version

0.37.1

License

GPL-3

Maintainer

Stephanie Locke

Last Published

November 7th, 2015

Functions in optiRum (0.37.1)

generatePDF

Convert an .Rnw file to a PDF
APR

Calculates the compound interest rate for a loan
optiRum

optiRum is a helper package
prob.logit

Convert a probability into a logit
logit.odd

Convert a logit to odds
pounds_format

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

Convert an odd into a logit
thousands_format

Thousands formatter: format number with commas separating the number thousands and suffixed with a k. Based heavily on the scales work by Hadley
theme_optimum

Produce an Optimum-standard base chart
PMT

Calculates the repayment for a loan
giniCoef

Produce a gini coefficient
logit.prob

Convert a logit to probability
sanitise

A cleaning function for special characters
RATE

Calculates compounded interest rate
giniChart

Produce a ROC curve with gini coefficient title
PV

Calculates the present value
wordwrap

Produce a string with one word per line Designed for splitting strings to fit better on axis on charts
scaledScore

Produce a scaled score based on a logit
CJ.dt

Cross join two data.tables
convertToXML

Produce an XML document of a table
multiplot

Multiple plot function
calcNetIncome

Calculate income after tax and benefits
odd.prob

Convert an odds to probability
taxYear

Returns the UK financial tax year for a given date
prob.odd

Convert a probability into odds probability