Skip to main content

Section 3.5 Questions

Checkpoint 3.5.1.

According to the chapter, what is a key characteristic of the R language?
  • It is a command-line-oriented language that requires precise syntax and a good understanding of the data.
  • Correct! The text emphasizes that R is a full programming language that is "command-line" oriented and forces users to know their data.
  • It is a simple tool, similar to a spreadsheet, where formulas create results like magic.
  • No, the chapter specifically contrasts R with spreadsheets, noting R requires more user understanding and "hides very little."
  • It provides very helpful and clear error messages for new users.
  • No, the chapter states that R is "not especially good at giving feedback or error messages that help the user."
  • It is a commercial program with high licensing fees, similar to SAS or SPSS.
  • No, the text clearly states that R is a free, open-source program.
Chapter Challenge
Using logic and online resources to get help if you need it, learn how to use the c() function to add another family member’s age on the end of the myFamAge vector.
Write and test a new function called MySamplingDistribution() that creates a sampling distribution of means from a numeric input vector. You will need to integrate your knowledge of creating new functions from this chapter with your knowledge of creating sampling distributions from the previous chapter in order to create a working function. Make sure to give careful thought about the parameters you will need to pass to your function and what kind of data object your function will return.
You have attempted of activities on this page.