daytime_methods | R Documentation |
daytime
Methods for class daytime
## S3 method for class 'daytime' mean(x, ...) ## S3 method for class 'daytime' sd(x, units = c("min", "hr"), type = c("MSD", "SRL", "circular"), ...) sd(x, ...)
x |
input data |
... |
arguments passed to methods |
units |
character scalar specifying the desired units of output for
|
type |
character scalar specifying the method to use for |
Time <- as_daytime( Sys.time()+rnorm(100, 0, 4*60*60), TRUE ) ## Wrap in `as.numeric` for better printing as.numeric(mean(Time)) as.numeric(sd(Time)) ## Compare mean(as.numeric(Time)) sd(as.numeric(Time)) if (!!requireNamespace("PAutilities", quietly = TRUE)) PAutilities::mean_sd(Time)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.