Why multiplication returns NA in R -
i have vector f2 in r:
f2 [,1] [1,] 0.125 [2,] 0.875
and when prompt f2[1], 0.125. when prompt f2[2], 0.875
but when prompt f2[1]*f[2], na.
i wondering why case, , what correct syntax be.
i cannot reproduce problem:
m = matrix(runif(2), 2, 1) m [,1] [1,] 0.4633784 [2,] 0.6180268 > m[1] [1] 0.4633784 > m[2] [1] 0.6180268 > m[1]*m[2] [1] 0.2863803
so you'll have bit more specific.
Comments
Post a Comment