Finance Train
Menu

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

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