convert.date.character: Convert character objects into Date

Description Usage Arguments Value Author(s)

View source: R/utils.R

Description

An auxiliary function to convert the date format used in the files on the FTP server of the DWD into a format, which can be handled by the lubridate package.

Usage

1
2
## S3 method for class 'character'
convert.date(input.data, origin = "1970-01-01")

Arguments

input.data

A character vector containing the input date.

origin

Day the numerical representation of the date will be zero. Per default, as used in the POSIX standard, it is the string "1970-01-01".

Value

Vector of Date objects of the same length as the input vector input.data.

Author(s)

Philipp Mueller


theGreatWhiteShark/dwd2r documentation built on May 22, 2019, 2:26 p.m.