Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3 Let x be a numeric vector. Create a new vector y which consists of all entries of x between - 3 and 3

Question 3
Let x be a numeric vector. Create a new vector y which consists of all entries of x between -3 and 3(including -3 and 3), in order of appearance as in the vector x. For example, if
x=c(-5,7,0,3,14,9,5,10,-2,0,12)
then, printing y should read
y
[1]0,3,-2,0
Similarly to the previous problem, we create a function extract () within which you need to type y in terms of x, so that for various vectors x the output extract (x) always gives the entries of
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

What is meant by realization of prots?

Answered: 1 week ago