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 Quizizz
20 questions
Understanding Inner Joins in SQL

Quiz
•
9th Grade - University
17 questions
PHP MySQL

Quiz
•
7th Grade - Professio...
15 questions
Computer Keyboard Quiz

Quiz
•
University
12 questions
R variable Data Type and Flow Control Quiz

Quiz
•
University
10 questions
Quiz 8: Arrays&Vector

Quiz
•
University
20 questions
LOOKUP

Quiz
•
9th Grade - University
15 questions
bootstrap let's play

Quiz
•
University
16 questions
SUMATIF 1 ANALISIS DATA

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade