I would like to have a recursive function with a numeric argument. The general structure is as follows. I added the is.numeric() check because my original function
is.numeric()