Convert timings to different units.
The following units of time are supported
Nanoseconds.
Microseconds.
Milliseconds.
Seconds.
Appropriately prefixed time unit.
Hertz / evaluations per second.
Evaluations per second / Hertz.
Kilohertz / 1000s of evaluations per second.
Megahertz / 1000000s of evaluations per second.
Appropriately prefixed frequency unit.
convert_to_unit(x, unit = c("ns", "us", "ms", "s", "t", "hz", "khz", "mhz", "eps", "f"))
x |
An |
unit |
A unit of time. See details. |
A matrix containing the converted time values with an
attribute unit
which is a printable name of the unit of
time.
Olaf Mersmann
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.