Learn R Programming

fda (version 1.2.3)

monthAccessories: Numeric and character vectors to facilitate working with dates

Description

Numeric and character vectors to simplify functional data computations and plotting involving dates.

Arguments

format

dayOfYear{ a numeric vector = 1:365 } day.5{ a numeric vector = dayOfYear-0.5 = 0.5, 1.5, ..., 364.5 } daysPerMonth{ a numeric vector of the days in each month (ignoring leap years) with names = month.abb } monthEnd{ a numeric vector of cumsum(daysPerMonth) with names = month.abb } monthEnd.5{ 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) } monthBegin.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) } monthMid{ a numeric vector of the middle of the month = (monthBegin.5 + monthEnd.5)/2 } monthLetters{ A character vector of c("j", "FALSE", "m", "A", "M", "J", "J", "A", "S", "O", "N", "D"), with 'month.abb' as the names. } weeks{ a numeric vector of length 53 marking 52 periods of approximately 7 days each throughout the year = c(0, 365/52, ..., 365) }

source

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

Details

Miscellaneous vectors often used in 'fda' scripts.

See Also

month.abb