1 / 14

The R Project for statistical computing

The R Project for statistical computing. Eric Fouh, Christopher Poirel CS 5604 Fall 2010. What is R?. Usages of R. statistics system data handling and storage facility calculations on arrays, in particular matrices integrated collection of tools for data analysis

jjanette
Download Presentation

The R Project for statistical computing

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. The R Projectfor statistical computing Eric Fouh, Christopher Poirel CS 5604 Fall 2010

  2. What is R?

  3. Usages of R • statistics system • data handling and storage facility • calculations on arrays, in particular matrices • integrated collection of tools for data analysis • graphical tool for data analysis • programming language (called ‘S’)

  4. Structure of R • R functions and dataset are stored in packages • R is provided with 25 “standard” packages: • Hundreds of contributed packages (written by different authors ) are available

  5. R and Information Retrieval

  6. Getting started with R • To start R >R • To quit R >q() • To see installed packages >library() • To load a package >library(class) • To start help > help.start() • To create a vector > x <- c(10.4, 5.6, 3.1, 6.4, 21.7) • To create a matrix > x <- array(1:20, dim=c(4,5)) # Generate a 4 by 5 array filled with number from 1 to 20. • To display an object >x • To delete an object >rm x • To load data from file >HousePrice <- read.table("houses.data")

  7. Examples (1) • Term-Document Matrix

  8. Examples (1)

  9. Examples (2) • Eigenvalues and eigenvectors

  10. Examples(3)

  11. Examples(3) • Law Rank approximation

  12. Examples(3)

  13. Examples(3)

  14. Resources • IIR Book • http://www.r-project.org/ Questions?

More Related