Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Horngrens Financial and Managerial Accounting

Authors: Tracie L. Nobles, Brenda L. Mattison, Ella Mae Matsumura

4th Edition

978-0133251241, 9780133427516, 133251241, 013342751X, 978-0133255584

Students also viewed these Programming questions