Chapter 6 Now over to you

You have seen few basic operations you can do in R. Now its time to try some yourself. These should be easy-peasy

6.1 Exercise 1

  • Calculate th product of 155*12
  • Store the result in the ‘results’ object (check that it now appears in your environment)
  • Now take a squareroot of the results
  • Save the results in the object ‘final_results’

6.2 Exercise 2

  • Go back to the revenues example
  • Assuming that our book did not sell that great after all and we only sold 50 copies.
  • Our publisher did not like it so they decrease the royalties that we get from sales so publsiher can cover the cost of book production (new royalty is £3)
  • What is the total revenue now?