Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Quantitative Methods for Lawyers - Bonus Module - Introduction to R, Installing R and RStudio - Professor Daniel Martin Katz

2,788 views

Published on

Quantitative Methods for Lawyers - Bonus Module - Introduction to R, Installing R and RStudio - Professor Daniel Martin Katz

Published in: Law, Technology, Education
  • Hello! Get Your Professional Job-Winning Resume Here - Check our website! https://vk.cc/818RFv
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • The link shown on page 32 (RStudio introduction) is correct, but the hyperlink connected to it points to a how-to-install video. Thanks for making http://www.quantitativemethodsclass.com/
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Quantitative Methods for Lawyers - Bonus Module - Introduction to R, Installing R and RStudio - Professor Daniel Martin Katz

  1. 1. Quantitative Methods for Lawyers Intro to the R Environment Installing R, R Studio Class Bonus Module @ computational computationallegalstudies.com professor daniel martin katz danielmartinkatz.com lexpredict.com slideshare.net/DanielKatz
  2. 2. In this introduction, I will curate for you the wonderful set of online resources that you can you to learn
  3. 3. Okay Lets Start With Some Quick Background
  4. 4. is a Statistical Computing Language
  5. 5. is a free, open source implementation of the S language
  6. 6. has particular syntax and logic that can be learned (but it takes some time)
  7. 7. The Basic Installation Offers a Base Model of but you can load additional packages as needed to customize your experience and add functionality
  8. 8. Indeed, now features more than 4,000 different packages
  9. 9. http://www.ats.ucla.edu/stat/r/seminars/intro.htm The Ecosystem
  10. 10. http://www.ats.ucla.edu/stat/r/seminars/intro.htm The Ecosystem
  11. 11. http://www.ats.ucla.edu/stat/r/seminars/intro.htm Later, I will show you how to add specific packages from CRAN The Ecosystem
  12. 12. http://www.ats.ucla.edu/stat/r/seminars/intro.htm Later, I will show you how to add specific packages from CRAN The Ecosystem (such as ggplot2)
  13. 13. http://www.ats.ucla.edu/stat/r/seminars/intro.htm But first, we will download the following: Core R The EcosystemLater, I will show you how to add specific packages from CRAN (such as ggplot2)
  14. 14. http://www.ats.ucla.edu/stat/r/seminars/intro.htm But first, we will download the following: Core R The EcosystemLater, I will show you how to add specific packages from CRAN (such as ggplot2)
  15. 15. http://www.ats.ucla.edu/stat/r/seminars/intro.htm R Studio (as our front end IDE tool) But first, we will download the following: Core R The EcosystemLater, I will show you how to add specific packages from CRAN (such as ggplot2)
  16. 16. http://www.ats.ucla.edu/stat/r/seminars/intro.htm R Studio (as our front end IDE tool) But first, we will download the following: Core R The EcosystemLater, I will show you how to add specific packages from CRAN (such as ggplot2)
  17. 17. Lets Install
  18. 18. A Useful Video for You on Installing R on a Windows Machine http://www.youtube.com/watch?v=X_oFb2iAdu8
  19. 19. A Useful Video for You on Installing R Studio on Windows http://www.youtube.com/watch?v=AZPbg29Plpw
  20. 20. http://www.youtube.com/watch?v=ICGkG7Gg6j0 A Useful Video for You on Installing R on a Mac
  21. 21. A Second Useful Video for You on Installing R + RStudio on a Mac http://www.youtube.com/watch?v=zMvwJtKY874
  22. 22. Note: Mac Users Might Also Benefit from Watching the PC video (and vice versa)
  23. 23. If you have successfully installed BOTH and
  24. 24. Then, it is time to explore So open R Studio
  25. 25. Here is the Front End
  26. 26. You Can Switch Your Colors in Preferences
  27. 27. You Can Switch Your Colors in Preferences
  28. 28. You Can Switch Your Colors in Preferences
  29. 29. Watch this video in full screen mode in order to get started with windows in R studio http://www.youtube.com/watch?v=jPk6-3prknk
  30. 30. Lets Explore Some More Basic Stuff With R Studio
  31. 31. Loading Packages
  32. 32. As promised, I will now show you how to add specific packages from CRAN
  33. 33. ggplot2 is a very popular graphics package
  34. 34. ggplot2 is a very popular graphics package It is not included in the base install of R
  35. 35. ggplot2 is a very popular graphics package It is not included in the base install of R But it is quite easy to add
  36. 36. Lets enter some commands
  37. 37. Library () will provide us with a list of currently installed packages
  38. 38. Scroll Through and Notice that ggplot2 is not there
  39. 39. Type install.packages (“ggplot2”) and hit return (don’t forget the quotes)
  40. 40. Notice that is automatically installing the dependencies this is great because not you do not have to go install each of them by hand :)
  41. 41. Can You Earn All 7 Badges ? http://tryr.codeschool.com/
  42. 42. Daniel Martin Katz @ computational computationallegalstudies.com lexpredict.com danielmartinkatz.com illinois tech - chicago kent college of law@

×