Getting Started with R Programming / Practice quiz
Getting Started with R Programming
Test your knowledge of the course - Getting Started with R Programming
15 questions
- What is the correct way to set a working directory in R?
- Which operator is most commonly used for variable assignment in R?
- What will be the output of this code?
- How do you convert a numeric value to an integer in R?
- What is the correct way to access the third element of a vector named 'earnings'?
- How would you create a 3x2 matrix from the vector c(64,31,65,28,66,35) filled by row?
- What will this code return?
- How do you create an ordered factor in R with levels "small", "medium", "large"?
- What is the correct way to add row names to a matrix?
- What function would you use to calculate the sum of all elements in a vector?
- How do you add a comment in R code?
- Which of these is the correct way to concatenate strings in R?
- What will be the output of this code?
- How do you check which objects are currently in your R workspace?
- What does the following code do?
15 left