string2date: POSIXlt conversion from character

View source: R/util.R

string2dateR Documentation

POSIXlt conversion from character

Description

Converts the date codes of the Value format to "POSIXlt"

Usage

string2date(timeString, tz = tz)

Arguments

timeString

Date vector as stored in VALUE files, previously coerced to character

tz

Time zone. See loadValueStations

Details

Currently the VALUE format is intended for daily data of the form YYYMMDD. However, the function also considers the possibility of subdaily data if hourly data are introduced in the form YYYYMMDDHH, eading to a string of 10 characters. @keywords internal @author juaco

Value

A POSIXlt vector of the same length of the input


SantanderMetGroup/R_VALUE documentation built on July 4, 2023, 4:27 a.m.