Knowledge Check

flowchart LR
    A((Objects)) --> B((Functions)) --> C((Operators))
    linkStyle default stroke:#adb5bd,stroke-width:2px

Conclusion

The core of R is creating objects using functions and operators. Before anything more advanced it is important to have a good understanding of objects, functions, and operators. You will get plenty of practice using these concepts in the other tutorials and in class.

Knowledge Check

The knowledge checks are required for each class. Wrong answers are not counted against you. Complete all questions below, then submit your results to your instructor.

What does the assignment operator <- do?

What is the output of the following code? x <- c(10, 20, 30) then class(x)

Which of the following is a valid object name in R?

What does str(my_data) tell you?

What is the result of 10 != 10 in R?

You run mean(my_df$revenue) and store the result with avg_rev <- mean(my_df$revenue). What is avg_rev?

Which operator would you use to check if city population is greater than or equal to 50,000?