Learn R Programming

trackeR (version 1.0.0)

smoother.trackeRdata: Smoother for trackeRdata objects.

Description

Smoother for trackeRdata objects.

Usage

# S3 method for trackeRdata
smoother(object, session = NULL, control = list(...),
  ...)

Arguments

object

An object of class trackeRdata.

session

The sessions to be smoothed. Default is all sessions.

control

A list of parameters for controlling the smoothing process. This is passed to smootherControl.trackeRdata.

...

Arguments to be used to form the default control argument if it is not supplied directly.

Value

An object of class trackeRdata.

See Also

smootherControl.trackeRdata

Examples

Run this code
# NOT RUN {
data("run", package = "trackeR")
## unsmoothed speeds
plot(run, smooth = FALSE)
## default smoothing
plot(run, smooth = TRUE, cores = 2)
## smoothed with some non-default options
runS <- smoother(run, fun = "median", width = 20, what = "speed", cores = 2)
plot(runS, smooth = FALSE)
# }

Run the code above in your browser using DataLab