Question: 1. You create a numeric vector with the command my_vect -> 2. What command(s) would you use in R Programming to do the following :

1. You create a numeric vector with the command my_vect ->

2. What command(s) would you use in R Programming to do the following :

    1. Display the first 5 elements of my_vect
    2. Display only the elements of my_vect that are negative
    3. Display only the elements of my_vect that are less than 10 and greater than or equal to zero

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!