1 / 12

PROGRAMMING IN R

PROGRAMMING IN R. Introduction to R. Introduction to R. In this session I will: Introduce you to the R program and windows Show how to install R Write basic programs in R. Introduction to R. R is available at the following website: http://www.r-project.org /

joelle-wall
Download Presentation

PROGRAMMING IN R

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PROGRAMMING IN R Introduction to R

  2. Introduction to R In this session I will: • Introduce you to the R program and windows • Show how to install R • Write basic programs in R

  3. Introduction to R • R is available at the following website: http://www.r-project.org/ • You can download R by clicking on the “Down Load” link. • We will demonstrate this later in this video.

  4. Introduction to R • There is an introduction to R available on the CRAN R-project website. http://cran.r-project.org/doc/manuals/R-intro.pdf • I recommend downloading this document and getting acquainted with it.

  5. Introduction to R • R is an environment for statistical computing, data analysis, and graphics • We will use R for describing and analyzing data • Being proficient in using R for statistical computing and analysis a skill that is highly valued in multiple arenas

  6. R Environment • R is an extremely capable environment. • The differences between R and SAS are too enumerable to describe. • R is similar to the S language developed at Bell Laboratories. • R can be challenging to learn but practice will make it easier.

  7. R Environment • There are three basic components to the R environment or R console. • R Commands window or Prompt– executes the commands. • Script Window – a program editor provided by R. • Graphics Window – an output window that displays graphics.

  8. R Environment • R is an expression language • It is case sensitive • A and a are two different symbols • Refer to different variables. • Elementary commands consist of either expressions or assignments.

  9. R Environment • Expressions • Given as a command, is evaluated, printed, and the value is lost. • Assignments • Evaluates the expression and passes the value to a variable • The result is not printed.

  10. R Environment • The R environment also has many different ways to store data. • R is an object oriented language so everything is stored as an object. • In this session, we will define the various types of objects but we will only use 2 of these types.

  11. R variables. • There are different types of objects or ways to store variables. • Vectors • Lists • Functions • For now, we will only work with Vectors.

  12. Introduction to R • Let’s install R.

More Related