Download presentation
Presentation is loading. Please wait.
1
http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html?pagewanted=all
3
Source Code -Tons of Lines of Code Simplified Package -Code -Documentation -Datasets Workspace -Fewer Lines of Code -Efficiency -Capability
6
Character Vector: b <- c("one","two","three") numeric vector character vector Numeric Vector: a <- c(1,2,5.3,6,-2,4) Matrix: y<-matrix(1:20, nrow=5,ncol=4) Dataframe: d <- c(1,2,3,4) e <- c("red", "white", "red", NA) f <- c(TRUE,TRUE,TRUE,FALSE) mydata <- data.frame(d,e,f) names(mydata) <- c("ID","Color","Passed") List: w <- list(name="Fred", age=5.3) Data Structures Framework Source: Hadley Wickham
7
Integrated Development Environment (IDE) Write Code/ Program -Input Data -Analyze -Graphics Datasets, etc. Enter Commands View Results
9
Workflow Statistics & Analysis Data Analysis Goals Data Input Visualization & Reporting Data Management Enter Manually Combine VariablesAdd Variable Select a Subset Input a Comma Separated Values R Installation Already Includes Several Libraries
10
(3a) Graphical Parameters (2) Statistical Function (3b) Plot Function Sample Script (1) Data Input
11
Currently, how many R Packages? At the command line enter: dim(available.packages()) available.packages()
12
Specialized “Domain” CourseSome Coverage stats graphics (both built-in) Data Management plyr reshape Graphics ggplot2 Bayesian DifferentialEquations Econometrics Environmetrics ExperimentalDesign Finance Genetics HighPerformanceComputing MachineLearning MedicalImaging NaturalLanguageProcessing Pharmacokinetics Phylogenetics Psychometrics SocialSciences Spatial TimeSeries
13
R Packages have been created that are equivalent to the functionality of SAS and SPSS
14
XLConnect XML rhbase sas7bdat Rcpp Packages for reading, writing for various data sources and file formats RJSONIO Hmisc RODBC / ROracle foreign RMySQL RWeka Comma Separated Variables
16
The R Graphics Package Graphing Parameters Titles X-Axis Title Y-Axis Title Legend Scales Color Gridlines library(help="graphics") Basic Chart Types
17
Correlations Matrix library(car) scatterplotMatrix(h)
18
The next data visual was produced with about 150 lines of R code
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.