# To calculate the 4th ascending factorial for a value (e.g., 3.14):
afac(x = 3.14, r = 4)
# To calculate the 5th ascending factorial for values 3.14, 2.72, and 0.58:
afac(x = c(3.14, 2.72, 0.58), r = 5)
Run the code above in your browser using DataLab