You want to generate a vector 1 2 3 5 6 7 . Which of the following function will generate this vector in R programming? Group of answer choices seq (from = 1, to = 10, by =2) seq (from =1, to = 10, by =1) c(1:3,5:7) rep (1, 10)
Added by Gregorio W.
Step 1
We can see that it consists of two sequences: 1 to 3 and 5 to 7. Show more…
Show all steps
Your feedback will help us improve your experience
Sanchit Jain and 92 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
(In R) What does seq(1, 10, by=2) produce? Predict the output of seq(10, 1, length.out=5).
Sanchit J.
(In R) Write the R command to create a vector containing the numbers 10, 20, 30, 40, 50. What is the output of c(1.5, 2.5, 3.5, 4.5) in R?
Lucas F.
To assign a vector to z, you use the following line of code: z <- c(10, 12, 6, 2, 14, 15, 15, 24, 15, 25, 3, 12). Next, you enter the following line of code: z[3]. What will R return? a. 6 b. 12 c. 10 d. 2 e. 14
Madhur L.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD