English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

R Language Tutorial

R est un langage de programmation et un environnement de développement pour l'analyse statistique, la représentation graphique et les rapports. Il a été créé par Ross Ihaka et Robert Gentleman de l'Université d'Auckland en Nouvelle-Zélande et est actuellement développé par l'équipe de développement central de R. R est fourni gratuitement sous la licence GNU General Public License et propose des versions binaires précompilées pour divers systèmes d'exploitation (comme Linux, Windows et Mac). Ce langage de programmation a été nommé R, basé sur les initiales des deux auteurs (robertgentlest et rossihaka) et en partie sur le nom du langage S du laboratoire Bell.

  

Le langage R est conçu pour les chercheurs en mathématiques, il s'agit d'un langage de programmation mathématique principalement utilisé pour l'analyse statistique, la visualisation graphique et l'extraction de données.

Si vous êtes un débutant en programmation informatique et que vous avez un désir pressé de comprendre la programmation universelle des ordinateurs, le langage R n'est pas un choix très idéal, vous pouvez choisir Python,C or Java.

R Language and C Language are both research results of Bell Labs, but they have different focus areas. R Language is an interpreted language for mathematical theory researchers, while C Language is designed for computer software engineers.

R Language is an interpreted language (different from the compiled and executed C language), its execution speed is much slower than C language, which is not conducive to optimization. But it provides more abundant data structure operations at the syntax level and can output text and graphic information very conveniently, so it is widely used in mathematics, especially in statistics.

R Language Official Website:https://cran.r-project.org/

Official mirror site list:https://cran.r-project.org/mirrors.html

Who is suitable for reading this tutorial?

This tutorial is specially designed for software programmers who need to learn R language from scratch.

If you are an experienced R language user, you can still get grammar references from this tutorial, but the tutorial itself may not contain content that can solve your deep problems.

R Language Features

  • R Language environment software belongs to GNU open source software, with good compatibility and free of charge

  • Syntax is very conducive to complex mathematical operations

  • Rich data types, including vectors, matrices, factors, datasets, and other common data structures

  • Good code style, strong readability

Although R is mainly used for statistical analysis or development of statistical software, some people also use it for matrix calculations. Its analysis speed is comparable to free software GNU Octave and commercial software MATLAB that are dedicated to matrix calculations.

Compile/Execute R Program

Example (helloworld.R)         

myString <- "Hello, World!"
print ( myString )
Test to see ‹/›

R Language file extension is .R.

References