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 uppercase 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 dataset on the web, download it, and load it into R. Explore the structure of the dataset.
- Reflect upon how Hester Prynne allowed her scarlet letter to be decorated with flowers by her daughter in the novel, The Scarlet Letter: A Romance. 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.