User:Wythagoras/Dollar function/Dollar and R functions