Tại sao là ngôn ngữ lập trình R?
- Free
- OS adaptability
- Many analysis methods
- Many "advanced" methods
- Great charts
History:
- R is a statistical and graphical programming language.
- Original is S
+ 1988-S2: RA Becker, JM Chambers, A Wilks
+ 1992-S3: JM Chambers, TJ Hastie
+ 1998-S4: JM Chambers
- R: thoạt đầu do Ross Ihaka và Robert Gentlemen (Đại học Auckland, New Zealand) viết vào thập niên 1990s.
- Từ 1994, international "R-core", 15 người.
Pros and Cons:
- Pros:
+ Free
+ Many professional packages
+ Open source
- Cons:
+ Difficult to understand terms
+ Use command
+ Symbol
What can R do?
- R is a statistical and analytical language
- Can do "all" the statistics models
- Simulation
- Draw chart & diagram beautifully
- Programming for new methods
Download from Internet:
- Availability internet connection
- Access http://cran.r-project/
- R for Windows screen, choose "base"
- Choose Download R, run OK, install
R workplace
Dẫn nhập
- Assignment operator: <- or =
Object:
- Have a name
- Ex: khoi.age = 15*3
khoi_age_1 <- 15*3
Case sensitive:
Workspace
- getwd(): watch the present folder
- ls(): list working objects
- setwd(mydirectory): change working folder
Ex: setwd("DL/a/b/")
- savehistory(file="myfile"): save commands
- loadhistory(file="myfile"): load commands
![]() |
Why shoud you use R programming language? |
Packages:
- R have package structure
- Each methods for each package
- Package will be download or onsite installing.
Thank you!
Source: Tram Vu Kiet
Comments
Post a Comment