<< date2num_m Time series datelf2hf0 >>

Grocer >> Time series > datelf2hf

datelf2hf

transformation of a date into a higher frequency date

CALLING SEQUENCE

datnew=datelf2hf(dat,divfq,ind)

PARAMETERS

Input

* dat = a string representing a grocer date

* fq = the destination frequency

* ind = a scalar equal to the high frequency part of the initial date

 

Output

* daten = the corresponding high frequency date

DESCRIPTION

For a given date, gives the corresponding date at a higher frequency, with the corresponding subdivision given by ind. The same purpose as datelf2hf0 but with some tests on the input.

EXAMPLE

datelf2hf('1989q1',3,1)
// gives '1989m1'
 
datelf2hf('1989a',4,2)
// gives '1989q2'.

AUTHOR

Eric Dubois 2005

Report an issue
<< date2num_m Time series datelf2hf0 >>