R (1) Install R language development environment under MAC OS

Source: Internet
Author: User

This text connection: http://blog.csdn.net/freewebsys/article/details/45825267 reprint Please specify the source!

1, about R

Reference Baidu:
Http://baike.baidu.com/view/942569.htm

R is a free software, it has UNIX, LINUX, MacOS and Windows version, are free to download and use. There you can download the installer, various plug-ins and documents to R. Only 8 basic modules are included in the R installer, and other external modules can be obtained via Cran.
The original code of R can be downloaded freely, and the compiled version of the executable file can be downloaded and run on a variety of platforms, including UNIX (also including FreeBSD and Linux), Windows and MacOS. R is primarily a command-line operation, while someone has developed several graphical user interfaces.
R built in a variety of statistical and digital analysis functions. Because of the blood of S, R has a stronger object-oriented (OO programming) function than other programming languages for statistical or mathematical purpose.
Another strength of R is the drawing function, which has the quality of printing and can also be added with mathematical symbols.
While R is primarily used for statistical analysis or development of statistical-related software, it is also used as a matrix calculation. Its analysis speed is comparable to GNU Octave or even business software matlab.
The functions of R can be enhanced by the user-written suite. Added features include special statistical techniques, drawing functions, as well as programming interfaces and data output/input functions. These packages are written by the R language, LaTeX, Java, and the most commonly used C language and Fortran. The downloaded version of the executable will be accompanied by a batch of core functionality packages, and there are thousands of different packages based on the Cran record. Several of them are more commonly used, such as economic metrology, financial analysis, humanities research, and artificial intelligence.

Official web site: http://www.r-project.org/
: http://cran.r-project.org/mirrors.html
Some R information: http://www.biosino.org/R/R-doc/
Online Course: http://mooc.guokr.com/course/831/R-Programming/

2, run

Enter an uppercase R to run.

$ RR Version3.2. 0( --Geneva- -)--"full of ingredients"Copyright (C) -The R Foundation forStatistical COMPUTINGPLATFORM:X86_64-APPLE-DARWIN13. 4. 0( --bit) R isFree software andComes withAbsolutely NO WARRANTY. You are welcome toRedistribute it under certain conditions.Type ' License()‘or ' licence()‘ forDistribution details.NaturalLanguage support but runninginchAn 中文版 Localer isA collaborative project withMany contributors.Type ' Contributors()‘ forMore information and' citation()‘ onHow toCite RorR PackagesinchPublications.Type ' Demo()‘ forSome demos,' Help()‘ for  on-line Help,or' Help. Start () ' forAn HTML browser interface toHelp.Type ' Q()‘ toQuit R.

or open the R app directly

is the same.

Or use the Rstudio interface almost, more like an IDE.
: http://www.rstudio.com/products/rstudio/download/

A little more beautiful than R native, just.

3. Run the document
...‘/usr/bin/open‘ is already running, it is    switch...

Opens the browser directly. Http://127.0.0.1:28500/doc/html/index.html

4, test drawing

Generate a time series, and then draw

> n => y = ts (cumsum (Rnorm (n)), freq=1,start=1)> > YTime Series:start = 1 End = Frequency = 1 [1] -2.1484444-2.4165615-4.4314564-4.1745558-4.4088817-3.8773732 [7]-2   .9216370-1.2526079-1.3148040 0.2296487 1.8539634 2.7425286[13] 3.8856914 3.1014960 2.8057776 0.9173390 3.2020466 2.3102118[19] 1.9843188 2.2405621 2.0113974 3.1125742 4.9738452 5.9069249[25] 5.0822865 4.7413174 5.7328391 6. 1592337 6.1109739 7.3177909[31] 6.5094616 8.1774888 7.4224026 7.5216051 8.9420936 9.5433402[37] 10.2872457 10.8617 828 10.8720675 9.8226589 10.7345399 10.6478841[43] 11.3771110 11.6527294 10.1275914 9.1332807 9.0092668 9.5916158[49] 11.8055460 11.9472156 11.7771394 12.5723685 13.1718050 12.6607790[55] 14.1559965 14.8708211 12.6463458 11.9264606 13.4701740 16.5901106> Plot (y,type= ' o ')

Sets n=60 seconds, randomly generates Y data, and plots the curve using plot.

or Rstudio convenient, you can see the variable, and draw the diagram.

4, more commands

More command references:
Http://personality-project.org/r/r.commands.html

5, summary

This text connection: http://blog.csdn.net/freewebsys/article/details/45825267 reprint Please specify the source!

R language is very simple and powerful, very much like Matlab, directly is the operator, but more lightweight than MATLAB. and start open source software.
Why use R language, specifically do data analysis, do report see trends, need data are not too much, with r enough. The sense that Hadoop is data processing uses r when the calculation results are analyzed again. Combined with the use of more efficient, Hadoop advantage is big data, R is the advantage of statistical functions convenient, easy to display icons. So the two combine to use the best.

R (1) Install R language development environment under MAC OS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.