R crash course

download R crash course

If you can't read please download the document

  • date post

    25-Jan-2015
  • Category

    Education

  • view

    4.584
  • download

    2

Embed Size (px)

description

The following presentation contains some basic introduction materials for R beginners.

Transcript of R crash course

  • 1. R crashcourseT. Hengl & R.S. BivandR crash course Overview Course programme(for people who pick up new methods/tools quickly Why R? Software installation and have a high motivation to learn) Scripting in R Dos and donts R code editorsWorking with T. Hengl1 & R.S. Bivand2 spatial data Spatial classes Spatial methods1 Instituut voor Biodiversiteit en Ecosysteem Dynamica R+SAGA R+FWToolsUniversiteit van Amsterdam Export to Google Earth2 Department of Economics LiteratureNorwegian School of Economics and Business administration June 19, 2010

2. OutlineR crashcourse 1 Overview T. Hengl & R.S. Bivand Course programme Overview Why R? Course programmeSoftware installation Why R? Software installation 2 Scripting in R Scripting in R Dos and donts Dos and donts R code editors R code editors Working with spatial data Spatial classes 3 Working with spatial data Spatial methods R+SAGA Spatial classes R+FWTools Export to GoogleSpatial methods EarthR+SAGA LiteratureR+FWToolsExport to Google Earth 4 Literature 3. ProgrammeR crashcourseT. Hengl & R.S. BivandOverview Course programme Why R? Software installationScripting in R Installation and rst (baby) steps (intro.R). Dos and donts R code editorsBuilding, running and editing models in R. Working with spatial data Working with spatial data. Spatial classes Spatial methods R+SAGA R+FWTools Export to Google Earth Literature 4. Crash courseR crashcourseT. Hengl & R.S. BivandOverview Course programme Why R? Software installation A crash course is a compressed version of a training course for Scripting in Rpeople that already have full agendas. It is really intended for Dos and donts R code editors people who pick up new methods/tools quickly and have a high Working withmotivation to learn (PhD students?). This means no long spatial data Spatial classesquestions, no going back, no long discussion, no complains Spatial methods about the speed/programme of the course. . . and of course: no R+SAGA R+FWToolspromises that you will manage to learn R in such a short time. Export to Google Earth Literature 5. The course programmeR crashcourse Basic concepts (self-study) T. Hengl & R.S. Bivand R basic and add-on packages; Overview R syntax; R objects and methods; Course programme Why R? R FAQs; getting help and the most important literature; Software installation Scripting in R Scripting in R Dos and donts R code editors data management; creating and debugging scripts Working with(scripting editors: Tinn-R); spatial data Spatial classes automating analysis making functions and packages; Spatial methods R+SAGApublication quality outputs (using R+Sweave); R+FWTools Export to Google Earth Advanced topics LiteratureGDAL and R; spatial classes and packages; calling external applications from R (SAGA GIS, FWTools, Python, Matlab; export of maps to Google Earth; 6. OutlineR crashcourse 1 Overview T. Hengl & R.S. Bivand Course programme Overview Why R? Course programmeSoftware installation Why R? Software installation 2 Scripting in R Scripting in R Dos and donts Dos and donts R code editors R code editors Working with spatial data Spatial classes 3 Working with spatial data Spatial methods R+SAGA Spatial classes R+FWTools Export to GoogleSpatial methods EarthR+SAGA LiteratureR+FWToolsExport to Google Earth 4 Literature 7. Getting the right motivation (inspiration)R crashcourseT. Hengl & R.S. BivandOverview Course programme Why R? Software installation What is R, and why should you invest time to learn it? Scripting in R Dos and donts What can it do? (and what it cant do?) R code editorsWorking with How does the R community works (what are its shared spatial dataprinciples)? Spatial classes Spatial methods R+SAGA Is R suited for spatio-temporal data analysis? R+FWTools Export to Google Earth Literature 8. Some important assumptionsR crashcourseT. Hengl & R.S. BivandOverview Course programme Why R? Software installation R is (increasingly) sexy. Scripting in R Dos and donts R is hell. R code editors You are all beginners (who need a gentle intro). Working with spatial data Spatial classes You are non-statisticians / computer scientists. Spatial methods R+SAGA I learned R myself. If I can do it, you can do it too. R+FWTools Export to Google Earth Literature 9. Some important assumptionsR crashcourseT. Hengl & R.S. BivandOverview Course programme Why R? Software installation R is (increasingly) sexy. Scripting in R Dos and donts R is hell. R code editors You are all beginners (who need a gentle intro). Working with spatial data Spatial classes You are non-statisticians / computer scientists. Spatial methods R+SAGA I learned R myself. If I can do it, you can do it too. R+FWTools Export to Google Earth Literature 10. Some important assumptionsR crashcourseT. Hengl & R.S. BivandOverview Course programme Why R? Software installation R is (increasingly) sexy. Scripting in R Dos and donts R is hell. R code editors You are all beginners (who need a gentle intro). Working with spatial data Spatial classes You are non-statisticians / computer scientists. Spatial methods R+SAGA I learned R myself. If I can do it, you can do it too. R+FWTools Export to Google Earth Literature 11. Some important assumptionsR crashcourseT. Hengl & R.S. BivandOverview Course programme Why R? Software installation R is (increasingly) sexy. Scripting in R Dos and donts R is hell. R code editors You are all beginners (who need a gentle intro). Working with spatial data Spatial classes You are non-statisticians / computer scientists. Spatial methods R+SAGA I learned R myself. If I can do it, you can do it too. R+FWTools Export to Google Earth Literature 12. Some important assumptionsR crashcourseT. Hengl & R.S. BivandOverview Course programme Why R? Software installation R is (increasingly) sexy. Scripting in R Dos and donts R is hell. R code editors You are all beginners (who need a gentle intro). Working with spatial data Spatial classes You are non-statisticians / computer scientists. Spatial methods R+SAGA I learned R myself. If I can do it, you can do it too. R+FWTools Export to Google Earth Literature 13. What is R?R crashcourseT. Hengl &the open source implementation of the S language for R.S. Bivand statistical computing created by created by Ross Ihaka Overviewand Robert Gentleman (now maintained by the R Course programme Why R?Development Core Team); Software installationScripting in R why R?: the name R was selected for two reasons: (1) Dos and donts precedence R is a letter before S, and (2) coincidence R code editorsWorking with both of the creators names start with a letter R ; spatial data Spatial classes it is a computer language developed to simplify statistical Spatial methods R+SAGA computing/programming; R+FWTools Export to Google it oers many contributed packages, technical documents, Earth demos and examples; Literature widely recognized as one of the fastest growing and most comprehensive statistical computing tools; it is a movement; 14. What is R?R crashcourseT. Hengl &the open source implementation of the S language for R.S. Bivand statistical computing created by created by Ross Ihaka Overviewand Robert Gentleman (now maintained by the R Course programme Why R?Development Core Team); Software installationScripting in R why R?: the name R was selected for two reasons: (1) Dos and donts precedence R is a letter before S, and (2) coincidence R code editorsWorking with both of the creators names start with a letter R ; spatial data Spatial classes it is a computer language developed to simplify statistical Spatial methods R+SAGA computing/programming; R+FWTools Export to Google it oers many contributed packages, technical documents, Earth demos and examples; Literature widely recognized as one of the fastest growing and most comprehensive statistical computing tools; it is a movement; 15. What is R?R crashcourseT. Hengl &the open source implementation of the S language for R.S. Bivand statistical computing created by created by Ross Ihaka Overviewand Robert Gentleman (now maintained by the R Course programme Why R?Development Core Team); Software installationScripting in R why R?: the name R was selected for two reasons: (1) Dos and donts precedence R is a letter before S, and (2) coincidence R code editorsWorking with both of the creators names start with a letter R ; spatial data Spatial classes it is a computer language developed to simplify statistical Spatial methods R+SAGA computing/programming; R+FWTools Export to Google it oers many contributed packages, technical documents, Earth demos and examples; Literature widely recognized as one of the fastest growing and most comprehensive statistical computing tools; it is a movement; 16. What is R?R crashcourseT. Hengl &the open source implementation of the S language for R.S. Bivand statistical computing created by created by Ross Ihaka Overviewand Robert Gentleman (now maintained by the R Course programme Why R?Development Core Team); Software installationScripting in R why R?: the name R was selected for two reasons: (1) Dos and donts precedence R is a letter before S, and (2) coincidence R code editorsWorking with both of the creators names start with a letter R ; spatial data Spatial classes it is a computer language developed to simplify statistical Spatial methods R+SAGA computing/programming; R+FWTools Export to Google it oers many contributed packages, technical documents, Earth demos and examples; Literature widely recognized as one of the fastest growing and most comprehensive statistical computing tools; it is a movement; 17. What is R?R crashcourseT. Hengl &the open source implementation of the S language for R.S. Bivand statistical computing created by created by Ross Ihaka Overviewand Robert Gentleman (now maintained by the R Course programme Why R?Development Core Team); Software installationS