convert_yrday: Convert year-day timestamps in various formats to other...

Description Usage Arguments Value

Description

Convert year-day timestamps in various formats to other formats.

Usage

1
convert_yrday(x, from = "Y1234D123", to = "Date")

Arguments

x

the input date indicator - see from

from

character indicating the input format

  • Y1234D123 this is the default input format Yj

  • POSIXct for POSIXct class

  • matrix an nx2 numeric matrix of [year, day]

  • Date for Date class

  • pretty for character in Y-j format

to

character indicating the desired output

matrix

returns an nx2 numeric matrix of [year, day]

Date

returns a vector of Date values, see day - default

POSIXct

returns a vector of POSIXct values, see day

pretty

returns a character vector of Y-j

Y1234D123

returns a yrday stamp in format YyDj

year

returns the year as numeric

month

return the month as numeric

day

return the day number as numeric

Value

converted yearday string to desired format


btupper/obpgtools documentation built on May 13, 2019, 8:42 a.m.