Displaying 1 result from an estimated 1 matches for "bar_signal".
2007 Mar 29
1
creating conditional list of elements
...hink I got the answer. The following 
would do:
> signalList <- list(tradingRules$Signal[tradingRules$Enabled]) [[1]]
> length(signalList)
[1] 2
Now my problem is shifted: I have the Signal column in the original data 
frame referring to actual 
matrices previously created in R. That is, bar_signal and cif_signal are 
extant matrices. What I 
need is the minimum number of rows in these matrices, so what I plan to do 
is:
> n <- min(sapply(signalList, NROW))
but this doesn't work (it returns 1, but I have 2800 rows in each of 
bar_signal and cif_signal, so I should
get 2800)
Is th...