fds {rainbow} | R Documentation |
The function fds
is used to create general functional objects that are not ordered by time.
The function fts
is used to create functional time series objects.
The function sfts
is used to create sliced functional time series objects, where the x
variable is
also a time variable.
fds(x, y, xname, yname) fts(x, y, start = 1, frequency = 1, xname, yname) sfts(data, period = frequency(data), start = tsp(data)[1], frequency = 1, xname, yname)
x |
Numeric vector of length p. |
y |
Matrix of size p x n representing n functions of x observed at points 1,...,p. |
data |
An object of class ts . |
period |
Time period of sliced functional data. For instance, period = 12 is a monthly data. |
start |
The time of the first observation. Either a single number or a vector
of two integers, which specify a natural time unit and a (1-based) number of
samples into the time unit. See ts for details. |
frequency |
The number of observations per unit of time. |
xname |
Character string giving name of x vector. (optional) |
yname |
Character string giving name of y vector. (optional) |
An object of class fds
or fts
or sfts
.
Rob J Hyndman
fds(x = 1:20, y = Simulationdata$y, xname = "x", yname = "Simulated value") fts(x = 15:49, y = Australiasmoothfertility$y, xname = "Age", yname = "Fertility rate") sfts(ts(as.numeric(ElNino$y), frequency = 12), xname = "Month", yname = "Sea surface temperature")