

Vectors, Arrays, and Matrices in R
Flashcard
•
Mathematics
•
University
•
Practice Problem
•
Hard
Dr.J.Hirudhaya Asha
FREE Resource
Student preview

105 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What are the different R variable types?
Back
Integer, numeric (floating-point number), character (string), logical (Boolean), complex.
2.
FLASHCARD QUESTION
Front
How are vectors stored in R?
Back
Vectors are stored like arrays in C, contiguously.
3.
FLASHCARD QUESTION
Front
Can you insert or delete elements in a vector in R?
Back
No, the size of a vector is determined at its creation.
4.
FLASHCARD QUESTION
Front
How do you add an element to the middle of a vector in R?
Back
Use the c() function to combine parts of the vector with the new element.
5.
FLASHCARD QUESTION
Front
What function is used to obtain the length of a vector in R?
Back
The length() function.
6.
FLASHCARD QUESTION
Front
What is the result of the expression length(c(1,2,4))?
Back
3.
7.
FLASHCARD QUESTION
Front
What does the function first1 do?
Back
It returns the index of the first occurrence of the value 1 in a vector.
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?