Assess performance of elements within an R function
I know it is possible to estimate the time it takes to complete a function (e.g., with sys.time()
, but is there a way to benchmark a function and see which element within the function takes the longest/shortest?