posixct2rsminerveChar: Function to convert POSIXCT-dates to a character...

View source: R/posixct2rsminerveChar.R

posixct2rsminerveCharR Documentation

Function to convert POSIXCT-dates to a character representation as required by RSminerve

Description

Reformats 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.

Usage

posixct2rsminerveChar(dateVec, tz = "")

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.

Value

Dateframe with dates in dd.mm.yyyy hh:mm:ss representation

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")

hydrosolutions/riversCentralAsia documentation built on Feb. 7, 2023, 4:50 p.m.