Skip to content

Commit

Permalink
Fix subsetting in addTRIX (fix #72)
Browse files Browse the repository at this point in the history
The trix object is a matrix; subsetting by i only returns the first
column as a vector. This is a problem because chartTRIX expects
chobTA@TA.values to be a matrix.
  • Loading branch information
joshuaulrich committed Nov 19, 2015
1 parent 77ac094 commit 5977f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/addTA.R
Expand Up @@ -347,7 +347,7 @@ function(x) {

trix <- TRIX(xx,n=n,nSig=signal,maType=maType,percent=percent)

chobTA@TA.values <- trix[lchob@xsubset]
chobTA@TA.values <- trix[lchob@xsubset,]

chobTA@name <- "chartTRIX"
chobTA@call <- match.call()
Expand Down

0 comments on commit 5977f4a

Please sign in to comment.