What is a matrix in R?
PROBLEM SOLVING USING R - UNIT II - TEST 1 - MCQS

Quiz
•
Computers
•
University
•
Medium
MS.SHYAMALADEVI C
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A one-dimensional array
A two-dimensional array
A collection of data frames
A statistical model
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you define a matrix in R using the matrix() function?
matrix(data)
matrix(data, nrow)
matrix(data, ncol)
matrix(data, nrow, ncol)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which argument in the matrix() function determines the direction of filling the elements?
byrow
bycolumn
fill
direction
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you bind two matrices by rows in R?
bind_rows()
rbind()
row_bind()
merge()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the dim() function return in R?
Number of rows in a matrix
Number of columns in a matrix
Dimensions of a matrix
Data type of a matrix
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you subset a specific row in a matrix in R?
matrix[row, ]
matrix[, row]
matrix[row]
matrix[row, col]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you extract a specific column from a matrix in R?
matrix[row, ]
matrix[, col]
matrix[col]
matrix[row, col]
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
WTN-12-QUIZ-3

Quiz
•
University
17 questions
COP 2073 Exam 3 Review

Quiz
•
University
10 questions
Revision time

Quiz
•
University
19 questions
Week 1- Posture Test

Quiz
•
6th Grade - University
12 questions
R variable Data Type and Flow Control Quiz

Quiz
•
University
20 questions
C Maths

Quiz
•
University
14 questions
MATLAB Quiz

Quiz
•
University
17 questions
PHP MySQL

Quiz
•
7th Grade - Professio...
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade