Description Usage Arguments Value Note See Also Examples
Crude timings based on Sys.time
. microbenchmark
provides a more accurate result.
1 2 3 | tic(pos = 1, envir = as.environment(pos))
toc(pos = 1, envir = as.environment(pos))
|
pos |
Where to do the assignment. By default, assigns into the global environment. |
envir |
The |
tic
makes a reference to the current time in the global
environment. toc
compares elapsed time and returns the difference.
The data.table package formerly had these functions.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.