Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (10 Points) Few students were asked about the number of their siblings. The responses are: 2, 1, 1.7, 82, and 4. (a) What
2. (10 Points) Few students were asked about the number of their siblings. The responses are: 2, 1, 1.7, 82, and 4. (a) What type of variable are we measuring here? (b) Which one(s) of these responses do not make sense to you? Why? (c) Regardless of your answer above, compute an appropriate average of these responses. Explain. (d) Write the R command that is needed to create an object named x that contains this dataset into R. Workspace (e) Write the 5 computations steps that are required to evaluate the following R expres- sion: 5+2 (23 + 4/2): (f) What type of R object that is created using: x = read.csv("data.csv",header=T,row.names=1) (g) From the above read.csv command, what are the contents of the first row in the file data.csv? (h) From the above read.csv command, what are the contents of the first column in the file data.csv? (i) Write the R command that displays the last 4 rows of the object x. (j) Write the R command that displays the entire object x is an Excel-like table.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started