search for: ma_na

Displaying 1 result from an estimated 1 matches for "ma_na".

Did you mean: m_na
2000 Feb 15
1
Help with for
I haven't been able to solve two issues, really appreciate any help. Q1. Why this one goes like that? (could it be a bug?): What I want: > J_c(1,2,3) > MA_NA > MA[1]_min(J[1:2]) > MA[2]_min(J[2:3]) > MA [1] 1 2 Good, so now lets do it a little more faster (since the real vectors have over 15000 obs): > for (i in 1:2) MA[i]_min(J[i:i+1]) > MA [1] 2 3 It does the same with any function instead of min. Q2. The former type of job works be...