Closed amirmazmi closed 6 years ago
Thanks for the report! The problem is that the C routine returns a vector, and the reclass()
call converts it to the same type as the HL
input. So we have to be a bit more careful before trying to set colnames
on sar
.
Here's an example anyone can run:
data(ttrc, package = "TTR")
x <- xts::xts(ttrc[,-1], ttrc[,1])
tail(TTR::SAR(x[,2:3]))
Description
Column name for Parabolic SAR is unnamed
Probably after line 84, just needs the colnames:
***sorry, noob here. don't want to break anything
Expected behavior
Column is labelled "sar"
Minimal, reproducible example
Session Info