Which of the following code constructs vector of length 11?
A. > v <- 3*x + y + 1
B. > v <- 3*x + y + 2
C. > v <- 2*x + y + 1
D. > v <- 2*x + y + 4
Select an option to see the answer and solution.
How can we access the first component of the list?
A. Number of the position
B. Function
C. Package
D. Tools
Select an option to see the answer and solution.
An ordered collection of objects or components are called . . . . . . . .
A. Data frames
B. Datasets
C. Databases
D. Lists
Select an option to see the answer and solution.
The . . . . . . . . function returns a list of densities (y) corresponding to bin values (x).
A. Spline
B. Density
C. Lists
D. Locator
Select an option to see the answer and solution.
Data frames can have additional attributes such as . . . . . . . .
A. Rowname()
B. Rownames()
C. R.names()
D. D.names()
Select an option to see the answer and solution.
The . . . . . . . . function takes an arbitrary number of arguments and concatenates them one by one into character strings.
A. copy()
B. paste()
C. bind()
D. del()
Select an option to see the answer and solution.
All columns in a matrix must have the same mode and the . . . . . . . . length.
A. Different
B. Same
C. May be the same
D. May be different
Select an option to see the answer and solution.
The four most frequently used types of data objects in R are vectors, matrices, data frames and . . . . . . . .
A. Function
B. Lists
C. Packages
D. Interfaces
Select an option to see the answer and solution.
. . . . . . . .are Data frames which contain lists of homogeneous data in a tabular format.
A. Matrix
B. Vector
C. Lists
D. Array
Select an option to see the answer and solution.
What will be the output of the following R code?
> x <- 1:3
> y <- 10:12
> rbind(x, y)A. [,1] [,2] [,3]
x 1 2 3
y 10 11 12
B. [,1] [,2] [,3]
x 1 2 3
y 10 11
C. [,1] [,2] [,3]
x 1 2 3
y 4 5 6
D. [,4] [,5] [,3]
x 1 3 5
y 4 5 2
Select an option to see the answer and solution.
Point out the correct statement?
A. The elements of a logical vector cannot have the values TRUE, FALSE, and NA
B. Matrices are vectors with a dimension attribute
C. Numerical vectors are generated by conditions
D. seq() function has four arguments
Select an option to see the answer and solution.
To bind a row onto an already existing matrix, the . . . . . . . . function can be used.
A. Rbind
B. Sbnd
C. Gbind
D. Sbind
Select an option to see the answer and solution.
vectors can be one of two types namely atomic vectors and . . . . . . . .
A. Matrix
B. Vector
C. Lists
D. Array
Select an option to see the answer and solution.
A . . . . . . . . is a set of elements appearing in rows and columns where the elements are of the same mode whether they are logical, numeric (integer or double), complex or character.
A. Vector
B. Matrix
C. Lists
D. Data frames
Select an option to see the answer and solution.
Which function replicates elements of vectors?
Select an option to see the answer and solution.
Which of the following statement changes column name to h and f?
A. colnames(m) <- c("h", "f")
B. columnnames(m) <- c("h", "f")
C. rownames(m) <- c("h", "f")
D. rownames(m) <- c("f", "f")
Select an option to see the answer and solution.
Which of the following is a 3-dimensional dataset?
A. Eris
B. Iris
C. Toris
D. None of the above
Select an option to see the answer and solution.
What will be the output of the following R code?
> sqrt(-17)Select an option to see the answer and solution.
What will be the output of the following R code?
> x <- 1:3
> y <- 10:12
> cbind(x, y)A. x y
[1,] 6 10
[2,] 7 11
[3,] 8 12
B. x y
[1,] 1 10
[2,] 2 11
[3,] 3 12
C. x y
[1,] 1 4
[2,] 2 5
[3,] 3 6
D. x y
[1,] 1 6
[2,] 2 5
[3,] 3 10
Select an option to see the answer and solution.
Which of the following statement is invalid?
A. x <- c(1+0i, 2+4i)
B. x <- c(TRUE, FALSE)
C. x <- c(T, F)
D. None of the mentioned
Select an option to see the answer and solution.