Correct Answer: substr(X, 10, 11)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
R Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More R MCQ Questions
Which will test the hypothesis that two independent Normally distributed random variables A and B have different means?
Given the command: Z <- array(h, dim=c(3,4,2)), Z[1:24] stands for:
Given this named vector "X": > X <- c( 5, 10, 1, 20 ); > names( X ) <- c( "a", "b", "c", "d" ); Which operation is valid to show the 2nd and 4th components of X?
All of the following will directly display the help file for the plot() function except:
What R function can be used to tabulate values of categorical variable Y (columns) by categorical variable X (rows), including missing values?
What does the following R function output? xxx <- c(1, 1, 2, 2, 3, 3, NA, NA); yyy <- c(rep(0, 4), rep(1, 4)); cor(yyy, xxx)
What is the output for the command: > is.na( NaN ) ?
Suppose X is the vector c(1:10). Which R code will swap the values of the 3rd element of X and the 7th element of X?
Let X be a 3x4 matrix with non-zero values. The result of: > apply(X, 2, mean), is:
Which is NOT a valid R function for obtaining the residuals from a simple linear regression model of X predicting Y?