Learn R Programming

far (version 0.6-7)

date.fdata: Extract the date of fdata

Description

Extract the date(s) of fdata objects

Usage

date.fdata(data)

Value

A vector giving the dates (as character).

Arguments

data

A fdata object

Author

J. Damon

Details

The dates are the labels of the functionals observations of the fdata object.

fdata are not constructed as ts object so a specific function to obtain the date is useful.

See Also

fdata

Examples

Run this code
# Reading the data
library(stats)
data(UKDriverDeaths)

# Conversion of the data
fUKDriverDeaths <- as.fdata(UKDriverDeaths,col=1,p=12,dates=1969:1984,
                            name="UK Driver Deaths")
date.fdata(fUKDriverDeaths)

Run the code above in your browser using DataLab