Learn R Programming

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

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

78

Version

0.40.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stephanie Locke

Last Published

July 3rd, 2018

Functions in optiRum (0.40.1)

theme_optimum

Produce an Optimum-standard base chart
thousands_format

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

Produce a string with one word per line
scaledScore

Produce a scaled score based on a logit
taxYear

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

Convert an odd into a logit
giniChart

Produce a ROC curve with gini coefficient title
APR

Calculates the compound interest rate for a loan
CJ.dt

Cross join two data.tables
PMT

Calculates the repayment for a loan
RATE

Calculates compounded interest rate
generatePDF

Convert an .Rnw file to a PDF
calcNetIncome

Calculate income after tax and benefits
convertToXML

Produce an XML document of a table
PV

Calculates the present value
pounds_format

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

Convert a logit to odds
prob.odd

Convert a probability into odds probability
multiplot

Multiple plot function
sanitise

A cleaning function for special characters
optiRum

optiRum is a helper package
giniCoef

Produce a gini coefficient
logit.prob

Convert a logit to probability
odd.prob

Convert an odds to probability
prob.logit

Convert a probability into a logit