Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Understanding R input: A student writes the following line of R code: example = c ( 1 , 5 , - 4 , 3 ,

Understanding R input: A student writes the following line of R code:
example =c(1,5,-4,3,-2,8,13,-2)
(a)(0.5 pts each) Give the output of the following R commands.
i. example [4]
ii. example -2
iii. example c(1,3,5)
iv. example[4:6]
v. example -c(4,6,7)
(b)(0.5pts each) Explain why each of the following commands will throw an error.
i. Example[5]
ii. example [9]
iii. example 1,3,5,6
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

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

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

Identify how culture affects appropriate leadership behavior

Answered: 1 week ago