array in R error in next variable -


so try assign value in array. write code in r studio

enter image description here

and works. results correct. when insert third variable, comes error. fourth variable , on

enter image description here

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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -