inst/samples/loops.R

f <- function(N) {
    for (i in 1:N) {
        for (j in 1:N) {
            for (k in 1:N) {
                i + j + k
            }
        }
    }
}

Try the proftools package in your browser

Any scripts or data that you put into this service are public.

proftools documentation built on July 8, 2020, 5:20 p.m.