To Indians: need function to convert amount into Indian words (Crores, Lakhs, Thousands ...) in R language : I need a function in R language to convert amount into Indian words in crore, lakh, thousand etc...

For example:

function(3257) should generate: Three Thousand Two Hundred and Fifty Seven;

function(473257) should generate: Four Lakh Seventy Three Thousand Two Hundred and Fifty Seven;

function(12473257) should generate: One Crore Twenty Four Lakh Seventy Three Thousand Two Hundred and Fifty Seven

Plenty of working VBA functions can be found on the internet for use with Microsoft Excel and Access but I was unable to find a similar function in R language.

Can anyone help please?