230 likes | 322 Vues
Explore the original and current basic R command line interfaces for writing code, inputting and analyzing data, and creating graphics. Learn about built-in functions, installing packages, and developing code in R. Discover the equivalent functionality of SAS and SPSS packages, data management via GUI, and mathematical formulas. Try basic statistical functions like mean and max, as well as graphical functions including plot, barplot, and pie charts.
E N D
The Original and Current Basic R “Console” command line interface….
2008- 1996-
R-Deducer (2011) R-Commander (2005) Rattle (2004-6) Statistics - Graphs Graphic / ggplot2 Data Mining http://rattle.togaware.com/ http://www.rcommander.com/ http://www.deducer.org/ 2008 1993-6
Revolution Analytics has moved onto the radar screen for predictive analytics
Scripting • Write Code/ Program • Input Data • Analyze • Graphics Datasets, etc. Shortcut to viewData() Console Enter Single Commands View Text Output
Built-In Functions Install Packages Create Functions
A Few Lines of Code Programming Languages
R Packages have been created that are equivalent to the base functionality of SAS and SPSS
Built-In Functions Add-Ins Create Functions
Built-In Functions & Commands Mathematical Formula Data Management via the GUI
Combing Numbers, Text, Etc. • Use the c()function to combine values or text • ? to get more information • ?c 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)