I am trying to make a function that rounds other functions for my university degree . For example I would like to call the round_sqrt = round(sqrt) and when i call the round_sqrt(5) it has to shows me 2 instead of 2.23606797749979. What I am trying is this one:

## A recursive compose function in R?

I would like to create a function, "compose" in R which will compose an arbitrary number of functions given as arguments.