Skip to main content
100%

Time R Function Calls

✓ Published0🌍 Public
LLeeMendelowitz
Last edited Mar 7, 2015
Created on Mar 7, 2015

This example demonstrates two R functions for timing the execution of arbitrary code: `time.call` evaluates an expression using `evalq` and prints the elapsed time via `proc.time`, while `time.call.q` times pre-quoted expressions passed to `eval`. It also shows how to combine `time.call.q` with the `magrittr` pipe operator (`%>%`) to wrap a quoted assignment in a readable, one-line pipeline. The code uses base R functions only, with no external visualization libraries or datasets.

AI-generated description

Similar vizzes