Please complete before the next class.
Make sure that you’ve completed all previous HW first.
See the previous HW if you haven’t got RStudio working on your computer yet.
Read and review your notes and my notes over the basics of computing with R. Answer the review questions throughout the document.
- This is a tedious assignment–you’ll need to work carefully. I suggest spreading the exercise over several different sessions to give you time to digest the ideas. Don’t rush it. These ideas are not particularly difficult, but they require you to work slowly and carefully. We don’t meet again until Wednesday (due to Labor Day), so take advantage of this extra time.
- I try to write exam questions so that students who can do the review exercises will answer correctly and quickly (and that others will answer incorrectly and/or slowly).
- When you can’t get your code to work, it’s usually just a missing parenthesis, missing quotation mark, or something like that. It’s not that you’re making a huge mistake. Huamns can sitll mkae snese wehn tehre are tpyos, but not computers! Check your code for typos carefully. Run your script one line at a time, from top to bottom, to find mistakes. As examples, most mistakes are like the following:
b <- c("Male", "Female) # missing the second " after "Female"
exp(23 # forgot to close a parentheses
log(10 base = 2) # missing comma between arguments
a <- c(1, 2, 3)
mean(A) # R is case-sensitive--there's an object "a", but no object "A"
mena(a) # misspelled function name
Mean(a) # R is case-senstive
Textbook and Calculator
Once you have obtained the textbook and calculator (see the syllabus for the details), there is an assignment on Canvas worth 1 point. It asks for a selfie with your textbook and calculator.