R (Programming Language) Part-I
Sign in to Google to save your progress. Learn more
Which is not a property of lists and vectors? *
1 point
In the image below, the data frame is named rates. The statement sd(rates[, 2]) returns 39. As what does R regard Ellen's product ratings? *
1 point
Captionless Image
What is the principal difference between an array and a matrix? *
1 point
The variable height is a numeric vector in the code below. Which statement returns the value 35? *
1 point
Which choice does R regard as an acceptable name for a variable? *
1 point
Two variable in the mydata data frame are named Var1 and Var2. How do you tell a bivariate function, such as cor.test, which two variables you want to analyze? *
1 point
What is the value of y in this code? *
1 point
Captionless Image
d.pizza is a data frame. It's a column named temperature contains only numbers. If you extract temperature using the [] accessors, its class defaults to numeric. How can you access temperature so that it retains the class of data.frame? *
1 point
Captionless Image
What do you use to take an object such as a data frame out of the workspace? *
1 point
How to name rows and columns in DataFrames and Matrices F in R? *
1 point
How does a vector differ from a list? *
1 point
Ournames is a character vector. What values does the statement below return to Cpeople? *
1 point
Captionless Image
What is mydf$y in this code? *
1 point
Captionless Image
What value does this statement return? *
1 point
Captionless Image
What statement shows the objects on your workspace? *
1 point
You accidentally display a large data frame on the R console, losing all the statements you entered during the current session. What is the best way to get the prior 25 statements back? *
1 point
A data frame named d.pizza is part of the DescTools package. A statement is missing from the following R code and an error is therefore likely to occur. Which statement is missing? *
1 point
Captionless Image
Review the following code. What is the result of line 3? *
1 point
Captionless Image
Which function displays the first five rows of the data frame named pizza? *
1 point
In the image below, the data frame on lines 1 through 4 is named StDf. State and Capital are both factors. Which statement returns the results shown on lines 6 and 7? *
1 point
Captionless Image
Review the statements below. Does the use of the dim function change the class of y, and if so what is y's new class? *
1 point
Captionless Image
How does a matrix differ from a data frame? *
1 point
Review line 1 below. What does the statement in line 2 return? *
1 point
Captionless Image
What function joins two or more column vectors to form a data frame? *
1 point
What does c contain? *
1 point
Captionless Image
Submit
Clear form
This content is neither created nor endorsed by Google.