Multiple Choice (10)
3) What is the result of the following code?
c(6, 3, 2) + c(3, 2, 1)
Short Answer (5)
SA1) What does the function c() do in R? Answer in one sentence.
SA2) What is the difference between a numeric vector and a character vector? Give a short example of each.
SA3) In a tibble, what is the difference between a variable and an observation?
SA4) Rewrite the following code using a pipe:
names(us_data)
SA5) Why is piping often preferred over nested function calls like g(f(x))? Answer briefly in plain language.