View source: R/datetimeToDate.R
datetimeToDate | R Documentation |
This is used when a CRHMr date is stored as a datetime (POSIXct) variable.
datetimeToDate(dataframe, logfile = "")
dataframe |
Required. A data frame. The first name of the column must be a POSIXct variable, which can be converted to a standard R date. |
logfile |
Optional. Name of the file to be used for logging the action. Normally not used. |
If successful, returns a data frame where the first column is a standard CRHMr date. If unsuccessful, returns an error.
Kevin Shook
dateToDatetime
Badlake.radiation.daily <- aggDataframe(BadLake7376, period='daily',
columns=c(6,7,8), funs=c('mean'))
BadLake.datetime <- dateToDatetime(Badlake.radiation.daily, timezone='CST')
BadLake.date <- datetimeToDate(BadLake.datetime)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.