array in R error in next variable -
so try assign value in array. write code in r studio
and works. results correct. when insert third variable, comes error. fourth variable , on
i've tried other names third variable error still there. whats problem ? thank in advance
i think problem facing is:
you not declaring 'bb'
, try declare 'bb'
before use it.
> bb<-0 > for(i in 1:10){ + a[i]=3*i + b[i]=4*i + bb[i]=5*i + } > bb[3] [1] 15
Comments
Post a Comment