Slides:



Advertisements
Similar presentations
PRE-SCHOOL QUANT WORKSHOP II R THROUGH EXCEL. NEW YORK TIMES INFOGRAPHICS GALARY The Jobless Rate for People Like You Home Prices in Selected Cities For.
Advertisements

Writing functions in R Some handy advice for creating your own functions.
Baburao Kamble (Ph.D) University of Nebraska-Lincoln Data Analysis Using R Week3: Data Input/Output (Import/Export) in R.
Fundamental Features of Graphs All graphs have two, clearly-labeled axes that are drawn at a right angle. –The horizontal axis is the abscissa, or X-axis.
MATLAB Presented By: Nathalie Tacconi Presented By: Nathalie Tacconi Originally Prepared By: Sheridan Saint-Michel Originally Prepared By: Sheridan Saint-Michel.
Introduction to GTECH 201 Session 13. What is R? Statistics package A GNU project based on the S language Statistical environment Graphics package Programming.
Today: Run SAS programs on Saturn (UNIX tutorial) Runs SAS programs on the PC.
R for Research Data Analysis using R Day1: Basic R Baburao Kamble University of Nebraska-Lincoln.
1 CA201 Word Application Working with Charts Week # 7 By Tariq Ibn Aziz Dammam Community college.
Graphing. The Important Elements of a Graph  Horizontal Axis (X-Axis)  Represents the passage of time and the numerical value of behavior.  The Independent.
EViews. Agenda Introduction EViews files and data Examining the data Estimating equations.
RESEARCH HUB AT THE UNIVERSITY LIBRARIES PENN STATE UNIVERSITY TOUR OF STATISTICAL PACKAGES.
Source Code -Tons of Code Package -More Code -Statistical Functions -Datasets Workspace -Fewer Lines of Code -Capability.
Basic R Programming for Life Science Undergraduate Students Introductory Workshop (Session 1) 1.
Correlation and Covariance. Overview Continuous Categorical Histogram Scatter Boxplot Predictor Variable (X-Axis) Height Outcome, Dependent Variable (Y-Axis)
Correlation and Covariance
Chapter 5 Review: Plotting Introduction to MATLAB 7 Engineering 161.
Graphing. The Important Elements of a Graph  Horizontal Axis (X-Axis)  The Independent Variable. A change in this variable affects the y variable. 
ALEXANDER C. LOPILATO R: Because the names of other stat programs don’t make sense so why should this one?
Introduction to SPSS Edward A. Greenberg, PhD
The Original and Current Basic R “Console” command line interface….
Intro to R R is a free version of S-plus R is a free version of S-plus Can be used interactively but script or syntax files are commonly used to record.
Introduction to to R Emily Kalah Gade University of Washington Credit to Kristin Siebel for development of much of this PowerPoint.
Programming in R Getting data into R. Importing data into R In this session we will learn: Some basic R commands How to enter data directly into R How.
18 August Statistical Analysis with R Questionnaires Variables organization Descriptive analysis Graphs Statistical tests 1.
Currently, how many R Packages? At the command line enter:  dim(available.packages())  available.packages()
Khoros Yongqun He Dept. of Computer Science, Virginia Tech.
Graphing Parameters Titles X-Axis Title Y-Axis Title Legend Scales Color Gridlines library(help="graphics") Basic Chart Types The R Graphics Package LineHistogram.
I❤RI❤R Kin Wong (Sam) Game Plan Intro R Import SPSS file Descriptive Statistics Inferential Statistics GraphsQ&A.
R-Studio and Revolution Analytics have built additional functionality on top of base R.
16 Graph Skills How to read and understand advanced types of bar charts, area graphs, climographs and triangle graphs How to advance their skills of drawing.
_______________________________________________________________CMAQ Libraries and Utilities ___________________________________________________Community.
Data Manipulation Steve Allison
Outline Comparison of Excel and R R Coding Example – RStudio Environment – Getting Help – Enter Data – Calculate Mean – Basic Plots – Save a Coding Script.
R packages/libraries Data input/output Rachel Carroll Department of Public Health Sciences, MUSC Computing for Research I, Spring 2014.
Currently, how many R Packages? At the command line enter:  dim(available.packages())  available.packages()
Introduction to R Introductions What is R? RStudio Layout Summary Statistics Your First R Graph 17 September 2014 Sherubtse Training.
Ggplot2 A cool way for creating plots in R Maria Novosolov.
Introduction to Matlab  Matlab is a software package for technical computation.  Matlab allows you to solve many numerical problems including - arrays.
DATA MINING Pandas. Python Data Analysis Library A library for data analysis of (mostly) tabular data Gives capabilities similar to Excel and SQL but.
John Porter Sheng Shan Lu M. Gastil Gastil-Buhl With special thanks to Chau-Chin Lin and Chi-Wen Hsaio.
Outline Research Question: What determines height? Data Input Look at One Variable Compare Two Variables Children’s Height and Parents Height Children’s.
PH15010 Laboratory Techniques - An Introduction to MATHCAD.

Currently, how many R Packages? At the command line enter:  dim(available.packages())  available.packages()
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
Data & Graphing vectors data frames importing data contingency tables barplots 18 September 2014 Sherubtse Training.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Advanced Charts Lesson 9. Objectives 1. Create charts by using data from other applications. 2. Modify chart types. 3. Add and modify chart options. 4.
Lecture 11 Introduction to R and Accessing USGS Data from Web Services Jeffery S. Horsburgh Hydroinformatics Fall 2013 This work was funded by National.
Pinellas County Schools
R PROGRAMMING FOR SQL DEVELOPERS Kiran Math Developer : Proterra in Greenville SC
Vectors and DataFrames. Character Vector: b
Introduction to R user-friendly and absolutely free
EMPA Statistical Analysis
Sections Text Mining Plan Twitter API twitteR package
DATA MANAGEMENT MODULE: Getting Data Into and Out of R
Lecture 25.
Getting your data into R
CHAPTER 2 Computer Software.
Currently, how many R Packages?
Data Management Module: Concatenating, Stacking, Merging and Recoding
DATA MANAGEMENT MODULE: Getting Data Into and Out of R
Today’s Beginner Workshop
Use of Mathematics using Technology (Maltlab)
McIDAS-V: Why it’s Based on VisAD and IDV
R Programming For Sql Developers ETL USING R
Code is on the Website Outline Comparison of Excel and R
Communication and Coding Theory Lab(CS491)
Vectors and DataFrames
Presentation transcript:

Source Code -Tons of Lines of Code Simplified Package -Code -Documentation -Datasets Workspace -Fewer Lines of Code -Efficiency -Capability

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

Integrated Development Environment (IDE) Write Code/ Program -Input Data -Analyze -Graphics Datasets, etc. Enter Commands View Results

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

(3a) Graphical Parameters (2) Statistical Function (3b) Plot Function Sample Script (1) Data Input

Currently, how many R Packages? At the command line enter:  dim(available.packages())  available.packages()

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

R Packages have been created that are equivalent to the functionality of SAS and SPSS

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

The R Graphics Package Graphing Parameters Titles X-Axis Title Y-Axis Title Legend Scales Color Gridlines library(help="graphics") Basic Chart Types

Correlations Matrix library(car) scatterplotMatrix(h)

The next data visual was produced with about 150 lines of R code

Built-In Functions & Commands Mathematical Formula Data Management via the GUI

Use the c() function to combine values or text ? to get more information ?c Combing Numbers, Text, Etc. h <- c(77, 60, 90)

Let’s Try Some Basic Statistical Functions mean(h) max(h)

Let’s Try Some Graphical Functions #charts plot(h) barplot(h) pie(h) #data management sort(h) h2 <- sort(h) barplot(h2)