

Understanding Vectors in R
Interactive Video
•
Computers
•
9th - 10th Grade
•
Practice Problem
•
Hard
Patricia Brown
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a vector in R?
A sequence of data elements of different types
A sequence of data elements of the same basic data type
A function in R
A single data element
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to create a vector in R?
create()
combine()
vector()
c()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you label elements in a vector in R?
Using the tag() function
Using the names() function
Using the annotate() function
Using the label() function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the STR function do in R?
Labels vector elements
Displays the structure of an R object
Creates a new vector
Combines two vectors
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In R, what is the length of a variable that holds a single number?
It depends on the number
1
0
2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an atomic vector in R?
A vector that is automatically named
A vector that can hold only one element
A vector that can hold elements of the same type
A vector that can hold elements of different types
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you try to create a vector with different data types in R?
R will throw an error
R will create a list instead
R will coerce elements to the same type
R will create a matrix
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?