Data Analysis with R
上QQ阅读APP看书,第一时间看更新

Exercises

You can practice the following exercises to help you get a good grasp of the concepts learned in this chapter:

  • Write a function called simon.says that takes in a character string, and returns that string in all upper case after prepending the string "Simon says: " to the beginning of it.
  • Write a function that takes two matrices as arguments, and returns a logical value representing whether the matrices can be matrix multiplied.
  • Find a free data set on the web, download it, and load it into R. Explore the structure of the data set.
  • Reflect upon how Hester Prynne allowed her scarlet letter to be decorated with flowers by her daughter in Chapter 10. To what extent is this indicative of Hester's recasting of the scarlet letter as a positive part of her identity. Back up your thesis with excerpts from the book.