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

  • 513 views
Uploaded on

 

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
513
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
2
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Quantitative Methods for Lawyers professor daniel martin katz Installing R, R Studio Intro to the R Environment Class Bonus Module computationallegalstudies.com @ computational
  • 2. In this introduction, I will curate for you the wonderful set of online resources that you can you to learn
  • 3. Okay Lets Start With Some Quick Background
  • 4. is a Statistical Computing Language
  • 5. is a free, open source implementation of the S language
  • 6. has particular syntax and logic that can be learned (but it takes some time)
  • 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. Indeed, now features more than 4,000 different packages
  • 9. The Ecosystem http://www.ats.ucla.edu/stat/r/seminars/intro.htm
  • 10. The Ecosystem http://www.ats.ucla.edu/stat/r/seminars/intro.htm
  • 11. Later, I will show you how to add specific packages from CRAN The Ecosystem http://www.ats.ucla.edu/stat/r/seminars/intro.htm
  • 12. Later, I will show you how to add specific packages from CRAN The Ecosystem (such as ggplot2) http://www.ats.ucla.edu/stat/r/seminars/intro.htm
  • 13. Later, I will show you how to add specific packages from CRAN The Ecosystem (such as ggplot2) But first, we will download the following: Core R http://www.ats.ucla.edu/stat/r/seminars/intro.htm
  • 14. Later, I will show you how to add specific packages from CRAN The Ecosystem (such as ggplot2) But first, we will download the following: Core R http://www.ats.ucla.edu/stat/r/seminars/intro.htm
  • 15. Later, I will show you how to add specific packages from CRAN The Ecosystem (such as ggplot2) But first, we will download the following: Core R http://www.ats.ucla.edu/stat/r/seminars/intro.htm R Studio (as our front end IDE tool)
  • 16. Later, I will show you how to add specific packages from CRAN The Ecosystem (such as ggplot2) But first, we will download the following: Core R http://www.ats.ucla.edu/stat/r/seminars/intro.htm R Studio (as our front end IDE tool)
  • 17. Lets Install
  • 18. A Useful Video for You on Installing R on a Windows Machine http://www.youtube.com/watch?v=X_oFb2iAdu8
  • 19. A Useful Video for You on Installing R Studio on Windows http://www.youtube.com/watch?v=AZPbg29Plpw
  • 20. A Useful Video for You on Installing R on a Mac http://www.youtube.com/watch?v=ICGkG7Gg6j0
  • 21. A Second Useful Video for You on Installing R + RStudio on a Mac http://www.youtube.com/watch?v=zMvwJtKY874
  • 22. Note: Mac Users Might Also Benefit from Watching the PC video (and vice versa)
  • 23. If you have successfully installed BOTH and
  • 24. Then, it is time to explore So open R Studio
  • 25. Here is the Front End
  • 26. You Can Switch Your Colors in Preferences
  • 27. You Can Switch Your Colors in Preferences
  • 28. You Can Switch Your Colors in Preferences
  • 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. Lets Explore Some More Basic Stuff With R Studio
  • 31. Loading Packages
  • 32. As promised, I will now show you how to add specific packages from CRAN
  • 33. ggplot2 is a very popular graphics package
  • 34. ggplot2 is a very popular graphics package It is not included in the base install of R
  • 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. Lets enter some commands
  • 37. Library () will provide us with a list of currently installed packages
  • 38. Scroll Through and Notice that ggplot2 is not there
  • 39. Type install.packages (“ggplot2”) and hit return (don’t forget the quotes)
  • 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. Can You Earn All 7 Badges ? http://tryr.codeschool.com/