I think the problem is that adjustOHLC() doesn't use na.omit() on what it
gets back from adjRatios().  Any way that I try to correct this, I get a
fatal error I've never seen (pasted below).

Garrett

> SPY.adj <- adjustOHLC(SPY)

 *** caught segfault ***
address 0x39cc000, cause 'memory not mapped'

Traceback:
 1: .External("mergeXts", all = all[1:2], fill = fill, setclass = setclass,
    symnames = symnames, suffixes = suffixes, retside = retside,     env =
new.env(), tzone = tzone, ..., PACKAGE = "xts")
 2: merge.xts(..., all = all, fill = fill, suffixes = suffixes)
 3: cbind(deparse.level, ...)
 4: cbind((ratio * (Op(x) - Cl(x)) + Adjusted), (ratio * (Hi(x) -     Cl(x))
+ Adjusted), (ratio * (Lo(x) - Cl(x)) + Adjusted),     Adjusted, if
(has.Vo(x)) Vo(x) else NULL, if (has.Ad(x)) Ad(x) else NULL)
 5: structure(cbind((ratio * (Op(x) - Cl(x)) + Adjusted), (ratio *
(Hi(x) - Cl(x)) + Adjusted), (ratio * (Lo(x) - Cl(x)) + Adjusted),
Adjusted, if (has.Vo(x)) Vo(x) else NULL, if (has.Ad(x)) Ad(x) else NULL),
  .Dimnames = list(NULL, colnames(x)))
 6: adjustOHLC(SPY)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection:

>
>

	[[alternative HTML version deleted]]

