How to combine two or more function to make new function?


#1

Hi,
i would like to know how could we combine two or more functions to make a new function which would calculate all the functions in side that as a whole?


#2

Maybe look into having nested functions in an outer - inner model.


#3

Your question is a little general, so there are multiple answers that might fit it.

That being said, read help for purrr::compose function. It might do what you want.