The C language is more difficult. The reason is that R is an interpreted language and does not require compilation. C requires compilation. Compared with the two, R is a high-rise building that has been built and can be lived in. How does C build a building? All basic components of a high-rise building, such as doors, windows, bricks, beams, and foundations, must be remade.
#R, as a statistical analysis software, integrates statistical analysis and graphical display. It can run on UNIX, Windows and Macintosh operating systems, and is embedded with a very convenient and practical help system. Compared with other statistical analysis software, R has the following characteristics:
1. R is free software. This means it is completely free and open source. You can download any relevant installation programs, source codes, program packages and their source codes and documentation from its website and its mirrors. The standard installation file itself comes with many modules and built-in statistical functions. After installation, many commonly used statistical functions can be directly implemented.
2.R is a programmable language. As an open statistical programming environment, the syntax is easy to understand and it is easy to learn and master the language's syntax. And after learning it, we can program our own functions to extend the existing language. This is why its update speed is much faster than that of general statistical software, such as SPSS, SAS, etc. Most of the latest statistical methods and techniques are directly available in R.
3. All R functions and data sets are stored in the package. Only when a package is loaded, its contents can be accessed. Some commonly used and basic program packages have been included in the standard installation file. With the emergence of new statistical analysis methods, the program packages included in the standard installation file are also constantly changing with version updates. In the other version of the installation file, the program packages already included are: base-R basic module, mle-maximum likelihood estimation module, ts-time series analysis module, mva-multivariate statistical analysis module, survival-survival analysis module Wait.
4.R is highly interactive. Except that the graphics output is in another window, its input and output windows are all in the same window. If there is an error in the input syntax, you will be prompted immediately in the window. It has a memory function for previously entered commands and can be used at any time. Reproduce, edit and modify to meet user needs. The output graphics can be directly saved as JPG, BMP, PNG and other image formats, and can also be directly saved as PDF files. In addition, it has good interfaces with other programming languages and databases.
5. If you join the R help mailing list, you may receive dozens of emails about R every day. You can discuss various issues with the world's first-class experts in statistical computing. It can be said that it is the world's largest and most cutting-edge gathering place for the thinking of statisticians.
R is a GNU project based on the S language, so It can also be regarded as an implementation of S language. Generally, codes written in S language can be run in the R environment without modification. R's syntax is derived from Scheme. The use of R has many similarities with S-PLUS, and the two languages have certain compatibility. The user manual of S-PLUS can be used as the user manual of R with only slight modifications. So some people say: R is a "clone" of S-PLUS.
Recommended tutorial: "PHP"
The above is the detailed content of Which is more difficult, R language or C language?. For more information, please follow other related articles on the PHP Chinese website!