Function to convert POSIXCT-dates to a character representation as required by RSminerve
Source:R/posixct2rsminerveChar.R
posixct2rsminerveChar.RdReformats a POSIXct date formats to a string (vec) with the format dd.mm.yyyy hh:mm:ss. This is the format that RSMinerve accepts for time series.
Arguments
- dateVec
Date vector
- tz
Optional character indicating time zone for as.POSIXct. Default is system internal time zone (""). "GTM" or known local time zone of data recommended.
See also
Other Helper functions:
%>%(),
aggregate_to_monthly(),
cutRaster2Basin(),
decadeMaker(),
generateSeqDates(),
hyear(),
monDateSeq()
Examples
date_vec <- c("2018-01-01 01:00:00", "2018-01-01 02:00:00", "2018-01-01 03:00:00")
rsminerve_date_vec <- posixct2rsminerveChar(date_vec, "GMT")