View source: R/computeSeasonal.R
| computeSeasonal | R Documentation | 
Function to compute seasonal sin and cosine terms from POSIXlt variable
computeSeasonal(df, date, return.var)
df | 
 dataframe with date included  | 
date | 
 string column name of date to convert in POSIXlt format  | 
return.var | 
 string suffix for variable names to return  | 
df
sampleData <- sampleData
sampleData$bpdate <- as.POSIXlt(sampleData$Hbpdate) #convert from POSIXct to POSIXlt
computeSeasonal(df=sampleData,date="bpdate",return.var="bdate")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.