yday2YDAY: Convert year-days to YDAY set 'dNNN'

View source: R/timeslices.R

yday2YDAYR Documentation

Convert year-days to YDAY set 'dNNN'

Description

Convert year-days to YDAY set 'dNNN'

Usage

yday2YDAY(x, width = 3, prefix = "d", flag = "0")

Arguments

x

integer vector, year-days (for example, 1-365 for annual data)

width

integer, width of the output string, default is 3

prefix

character, prefix to add to the name, default is 'd'

flag

character, flag to add to the name, default is '0'

Value

character vector of the same length as x with formatted year-days to be used in the YDAY set.

Examples

yday2YDAY(1:365)

olugovoy/energyRt documentation built on Nov. 21, 2024, 2:24 a.m.