Question: please answer this question by code of R studio Create a numeric vector (which is x) starts from -2 to 3 by .1 (increment). 1.

please answer this question by code of R studio

Create a numeric vector (which is x) starts from -2 to 3 by .1 (increment).

1. How many elements did x have?

2. let s = 6. How to extract the first s elements of x? How to extract the last s elements of x?

3. How to extract all the elements of x that are within .6 of the median of x?

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!