[R-SIG-Finance] Testing existence in xts

Worik Stanton worik.stanton at gmail.com
Tue Apr 13 23:23:08 CEST 2010

How do I test for the existence of an entry in a xts?

Given xts z
> z
2009-01-08 1.71
2009-01-09 1.72
2009-01-12 1.71

and I want to test if z["2009-01-10",] exists, how do I do it?

Dig it out of the ground
Melt it down
Bury it
Guard it

More information about the R-SIG-Finance mailing list