Skip to content
ChaitraAR edited this page Jun 6, 2018 · 1 revision

1.Say true or false for the below statements:

  • Prescriptive analytics used to predict the future outcomes? True
  • Base R packages installed automatically? True

2.What is recycling of elements in a vector?

In R programming language, recycling of elements is when we perform operations on two different vectors having different 
lengths in it, the elements of the shorter length vector are used to complete the operation.

3.Give an example of recycling of elements?

v1<-c(4,1,0,6)
v2<-c(2,4)
print(v1*v2)  

o/p: 8 4 0 24