tfsummaries {tf} | R Documentation |
Functions that summarize tf
objects across argument values
Description
These will return a tf
object containing the respective functional
statistic. See tf_fwise()
for scalar summaries
(e.g. tf_fmean
for means, tf_fmax
for max. values) of each entry
in a tf
-vector.
Usage
## S3 method for class 'tf'
mean(x, ...)
## S3 method for class 'tf'
median(x, na.rm = FALSE, depth = c("MBD", "pointwise"), ...)
sd(x, na.rm = FALSE)
## Default S3 method:
sd(x, na.rm = FALSE)
## S3 method for class 'tf'
sd(x, na.rm = FALSE)
var(x, y = NULL, na.rm = FALSE, use)
## Default S3 method:
var(x, y = NULL, na.rm = FALSE, use)
## S3 method for class 'tf'
var(x, y = NULL, na.rm = FALSE, use)
## S3 method for class 'tf'
summary(object, ...)
Arguments
x |
a |
... |
optional additional arguments. |
na.rm |
logical. Should missing values be removed? |
depth |
method used to determine the most central element in |
y |
|
use |
an optional character string giving a
method for computing covariances in the presence
of missing values. This must be (an abbreviation of) one of the strings
|
object |
a |
Value
a tf
object with the computed result.
summary.tf
returns a tf
-vector with the mean function, the
variance function, the functional median, and the functional range
(i.e., pointwise min/max) of the central half of the functions,
as defined by tf_depth()
.
See Also
Other tidyfun summary functions:
functionwise