Helpers

CJ.dt()

Cross join two data.tables

convertToXML()

Produce an XML document of a table

generatePDF()

Convert an .Rnw file to a PDF

pounds_format() pounds()

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

sanitise()

A cleaning function for special characters

thousands_format() thousands()

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

wordwrap()

Produce a string with one word per line

Finance

APR()

Calculates the compound interest rate for a loan

PMT()

Calculates the repayment for a loan

PV()

Calculates the present value

RATE()

Calculates compounded interest rate

Tax

calcNetIncome()

Calculate income after tax and benefits

taxYear()

Returns the UK financial tax year for a given date

Credit risk

giniChart()

Produce a ROC curve with gini coefficient title

giniCoef()

Produce a gini coefficient

logit.odd()

Convert a logit to odds

logit.prob()

Convert a logit to probability

odd.logit()

Convert an odd into a logit

odd.prob()

Convert an odds to probability

prob.logit()

Convert a probability into a logit

prob.odd()

Convert a probability into odds probability

scaledScore()

Produce a scaled score based on a logit

Visualisation

multiplot()

Multiple plot function

theme_optimum()

Produce an Optimum-standard base chart