R Language Introduction

95
Introduction to R Khaled El-Sham’aa 1

description

 

Transcript of R Language Introduction

  • 1. Khaled El-Shamaa1

2. Session Road Map First Steps ANOVA Importing Data into R PCA R Basics Clustering Data Visualization Time Series Correlation & Regression Programming t-Test Publication-Quality output Chi-squared Test2 3. First Steps (1) R is one of the most popular platforms for data analysis and visualization currently available. It is free and open source software: http://www.r-project.org Take advantage of its coverage and availability of new, cutting edge applications/techniques. R will enable us to develop and distribute solutions to our NARS with no hidden license cost. 3 4. First Steps (2)4 5. First Steps (3)5 * 4 b[4][1] 20[1] 5a x xm c(xm, mean(x, trim = 0.10))[1] 8.75 5.50mean> mean(USArrests, trim = 0.2)Murder Assault UrbanPopRape7.42 167.6066.2020.16 9 10. First Steps (8) There are hundreds of contributed packages forR, written by many different authors (to implementspecialized statistical methods). Most are available fordownload from CRAN (http://CRAN.R-project.org) List all available packages:library() Load package ggplot2: library(ggplot2) Documentation on packagelibrary(help=ggplot2) 10 11. Importing Data into R (1) data