Access over 35 million academic & study documents

Pdf (64)

Content type
User Generated
Rating
Showing Page:
1/14

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/14

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/14

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 14 pages?
Access Now
Unformatted Attachment Preview
STATS 20 Midterm Exam May 9, 2016 1. Which is the expected output of the following R commands? > a a[2:4] > which(a > 3) (a) [1] 3 5 [1] 3 4 5 (b) [1] 3 4 5 [1] FALSE FALSE TRUE TRUE TRUE (c) [1] 3 5 [1] 4 5 8 (d) [1] 3 4 5 [1] 4 5 8 (e) [1] 3 4 5 [1] 3 4 5 Answer : e 2. The following code will produce a warning in R. Why? > x if(x > 7) { > x mylist mylist[[1]][2] 1 (a) [1] 2 (b) [1] 3 (c) [1] TRUE (d) [1] FALSE (e) [[1]] [1] 2 [[2]] [1] TRUE Answer : b 4. Which is the expected output of the following R commands? > A A[2] (a) [1] 2 4 (b) [1] 3 4 (c) [1] 2 (d) [1] 3 (e) [1] Error Answer : d 5. Which is the expected output of the following R commands? > > > > tshirt not meaningful for factors (b) [1] M L S L ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Just the thing I needed, saved me a lot of time.

Studypool
4.7
Indeed
4.5
Sitejabber
4.4