Formats a numeric vector to the desired units and concommitant styling

forCur(x)

forCurGBP(x)

forCurArea(x)

forCurAreaGBP(x)

Arguments

x

A numeric of any length

Value

A formated character string

Functions

  • forCurGBP: Add Sterling sign

  • forCurArea: Add meter sq. signs for areas

  • forCurAreaGBP: Add Sterling and per meter sq. signs for cost per area

Examples

forCur(405556)
#> [1] "405,556"
forCurGBP(346236)
#> [1] "£ 346,236"
forCurArea(452)
#> [1] "452 m²"
forCurAreaGBP(236)
#> [1] "£ 236 m²"