R intro
-
Upload
vishakh-nair -
Category
Documents
-
view
19 -
download
3
Transcript of R intro
INTRODUCTION TO R
VISAKH.V.NAIRS7 CSE
INTRODUCTION
Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues
R is the leading tool for statistics, data analysis, and machine learning.
It is more than a statistical package;
its a programming language, so you can create your own objects, functions, and packages.
Platform-independent
Open-source
Allows you to integrate with other languages (C/C++, Java, Python)
widely used among data miners for developing data surveys of data miners
INTRODUCTION(Cont..)
InstallationR can be downloaded from one of the mirror sites in http://cran.r-project.org/mirrors.html. You should pick your nearest location.
R SessionAfter R is started, there is a console awaiting for input. At the prompt (>), you can enter numbers and perform calculations.
FUNCTIONS
COMMENTS
Extension Package
HELP
DATA TYPES
Numeric
Integer
Complex
Logical
Character
IntegerIn order to create an integer variable in R, we invoke the as.integer function. We can be assured that y is indeed an integer by applying the is.integer function.
COMPLEX
Standard logical operations are "&" (and), "|" (or), and "!" (negation).
LOGICAL
CHARACTER
MATRIX
MATRIX(Cont..)
Elementary Statistics with R
Qualitative Data
Quantitative Data
Numerical Measures
Probability Distributions
R built-in data frame named painters.
Qualitative Data
end
THANK YOU