string2date: POSIXlt conversion from character

View source: R/loadStationData.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 loadStationData

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.

Value

A POSIXlt vector of the same length of the input

Note

The function is currently exported to be internally used by the VALUE package to load predictions.

Author(s)

juaco


SantanderMetGroup/loadeR documentation built on July 4, 2023, 4:29 a.m.