convert.date: Convert different 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.

It contains methods for the classes numeric, integer, and character. But be careful: These functions were only designed to work with the content of the DWD server and might result in odd behavior on different files!

Usage

1
convert.date(input.data, origin = "1970-01-01")

Arguments

input.data

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