Data Analysis & Visualization
Topic R vector and save the r code in a text file
Problem 1.
Create two vectors named v and w
with the following contents:
v : 21,10,32,2,-3,4,5,6,7,4,-22
w : -18,72,11,-9,10,2,34,-5,18,9,2
A) Print the length of the vectors
B) Print all elements of the vectors
C) Print elements at indices 3 through 7.
D) Print the sum of the elements in each vector.
E) Find the mean of each vector. (Use R's mean() function)...