Skip to content
Prev 2206 / 15274 Next

functions for quarterly settlement dates

There isn't much magic here btw:
function (x)
{
    which(format(index(x), "%d") > 14 & format(index(x), "%d") <
        22 & format(index(x), "%w") == 5 & as.numeric(months(x,
        TRUE)) %in% c(3, 6, 9, 12))
}
<environment: namespace:quantmod>

It does need a zoo or a 'xts' object.
On Sat, Feb 23, 2008 at 9:24 AM, tom soyer <tom.soyer at gmail.com> wrote: