dateAccessories | R Documentation |
Numeric and character vectors to simplify functional data computations and plotting involving dates.
a numeric vector = 1:365 with names 'jan01' to 'dec31'.
a numeric vector = c(182:365, 1:181) with names 'jul01' to 'jun30'.
a numeric vector = dayOfYear-0.5 = 0.5, 1.5, ..., 364.5
a numeric vector of the days in each month (ignoring leap years) with names = month.abb
a numeric vector of cumsum(daysPerMonth) with names = month.abb
a numeric vector of the middle of the last day of each month with names = month.abb = c(Jan=30.5, Feb=58.5, ..., Dec=364.5)
a numeric vector of the middle of the first day of each month with names - month.abb = c(Jan=0.5, Feb=31.5, ..., Dec=334.5)
a numeric vector of the middle of the month = (monthBegin.5 + monthEnd.5)/2
A character vector of c("j", "F", "m", "A", "M", "J", "J", "A", "S", "O", "N", "D"), with 'month.abb' as the names.
a numeric vector of length 53 marking 52 periods of approximately 7 days each throughout the year = c(0, 365/52, ..., 365)
Miscellaneous vectors often used in 'fda' scripts.
Ramsay, James O., and Silverman, Bernard W. (2006), Functional Data Analysis, 2nd ed., Springer, New York, pp. 5, 47-53.
Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.
axisIntervals
month.abb
daybasis65 <- create.fourier.basis(c(0, 365), 65)
daytempfd <- with(CanadianWeather, smooth.basisPar(day.5,
dailyAv[,,"Temperature.C"], daybasis65)$fd )
oldpar <- par(axes=FALSE)
plot(daytempfd)
axisIntervals(1)
# axisIntervals by default uses
# monthBegin.5, monthEnd.5, monthMid, and month.abb
axis(2)
par(oldpar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.