Question: z - c ( 1 , 2 , 4 , 7 , 1 1 ) Write R code using only basic functions and vector logic

z - c(1,2,4,7,11)
Write R code using only basic functions and vector logic to answer each of the following questions.
You can only use one line of code for each. You may not manually type of the elements in
question.
(a) Add 2 to every element in z

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!