rlanguagetutorial-130423204325-phpapp01

47
David Chiu R Language Tutorial 1 2/2 0/1 5 Confidential | Copyright 2013 Trend Micro nc!

description

R-Language

Transcript of rlanguagetutorial-130423204325-phpapp01

Volume Agile/Iterative Development Process

David ChiuR Language Tutorial1 4/16/2013Confidential | Copyright 2013 Trend Micro Inc.Background of R4/16/20132Confidential | Copyright 2012 Trend Micro Inc.What is R?GNU Project Developed by John Chambers @ Bell LabFree software environment for statistical computing and graphicsFunctional programming language written primarily inC,Fortran4/16/20133Confidential | Copyright 2012 Trend Micro Inc.

R LanguageR is functional programming languageR is an interpreted languageR is object oriented-languageWhy Using RStatistic analysis on the fly

Mathematical function and graphic module embedded

FREE! & Open Source! http://cran.r-project.org/src/base/

Kagglehttp://www.kaggle.com/

R is the most widely language used by kaggle participants

Data Scientist of these Companies Using RWhat is your programming language of choice, R, Python or something else? I use R, and occasionally matlab, for data analysis. There is a large, active and extremely knowledgeable R community at Google.http://simplystatistics.org/2013/02/15/interview-with-nick-chamandy-statistician-at-google/

4/16/20137Confidential | Copyright 2013 Trend Micro Inc.

Expert knowledge of SAS (With Enterprise Guide/Miner) required and candidates with strong knowledge of R will be preferredhttp://www.kdnuggets.com/jobs/13/03-29-apple-sr-data-scientist.html?utm_source=twitterfeed&utm_medium=facebook&utm_campaign=tfb&utm_content=FaceBook&utm_term=analytics#.UVXibgXOpfc.facebook

Commercial support for R

In 2007,Revolution Analyticsprovidea commercial support for Revolution Rhttp://www.revolutionanalytics.com/products/revolution-r.phphttp://www.revolutionanalytics.com/why-revolution-r/which-r-is-right-for-me.php

Big Data Appliance, which integrates R,Apache Hadoop,Oracle Enterprise Linux, and aNoSQLdatabase with the Exadatahardwarehttp://www.oracle.com/us/products/database/big-data-appliance/overview/index.html

Revolotion RFree for Community Versionhttp://www.revolutionanalytics.com/downloads/

http://www.revolutionanalytics.com/why-revolution-r/benchmarks.php

4/16/20139Confidential | Copyright 2013 Trend Micro Inc.

Base R 2.14.2 64Revolution R (1-core)Revolution R (4-core)Speedup (4 core)Matrix Calculation17.4 sec2.9 sec2.0 sec7.9xMatrix Functions10.3 sec2.0 sec1.2 sec7.8xProgram Control2.7 sec2.7 sec2.7 secNot Appreciable

IDE R Studiohttp://www.rstudio.com/

4/16/201310Confidential | Copyright 2013 Trend Micro Inc.

RGUIhttp://www.r-project.org/Web App Development Shiny makes it super simple for R users like you to turn analyses into interactive web applications that anyone can use

http://www.rstudio.com/shiny/4/16/201311Confidential | Copyright 2013 Trend Micro Inc.

Package ManagementCRAN (Comprehensive R Archive Network)

4/16/201312Confidential | Copyright 2013 Trend Micro Inc.Repository URLCRANhttp://cran.r-project.org/web/packages/Bioconductor http://www.bioconductor.org/packages/release/Software.htmlR-Forge http://r-forge.r-project.org/

R Basic4/16/201313Confidential | Copyright 2012 Trend Micro Inc.Basic Commandhelp()help(demo)demo()demo(is.things)q()ls()rm()rm(x)4/16/201314Confidential | Copyright 2013 Trend Micro Inc.Basic ObjectVectorListFactorArrayMatrixData Frame4/16/201315Confidential | Copyright 2013 Trend Micro Inc.Objects & ArithmeticScalarx=3; y