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

R Language Tutorial

R ist eine Programmiersprache und Softwareumgebung für die statistische Analyse, graphische Darstellung und Berichterstellung. R wurde von Ross Ihaka und Robert Gentleman von der University of Auckland in Neuseeland erstellt und wird derzeit von dem R-Entwicklerteam weiterentwickelt. R wird unter der GNU General Public License kostenlos bereitgestellt und bietet für verschiedene Betriebssysteme (wie Linux, Windows und Mac) vorkompilierte Binärversionen. Diese Programmiersprache wurde nach den ersten Buchstaben der Namen der beiden R-Autoren (robertgentlest und rossihaka) benannt und ist teilweise nach dem Namen der Sprache S des Bell-Laboratoriums benannt.

  

R-Sprache ist eine Mathematik-Programmiersprache, die speziell für Mathematikforscher entwickelt wurde und hauptsächlich für Statistik, Diagrammgestaltung und Datenanalyse verwendet wird.

Wenn du ein Anfänger im Bereich der Computerprogrammierung bist und dringend wissen möchtest, wie man allgemeine Programmierung für Computer durchführt, ist R-Sprache keine sehr geeignete Wahl, man kann 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 research workers, 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.

Features of R Language

  • 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 the development of statistical software, some people also use it for matrix calculations. Its analysis speed is comparable to that of free software GNU Octave and commercial software MATLAB.

Compile/Execute R Program

Example (helloworld.R)         

myString <- "Hello, World!"
print ( myString )
Test and See ‹/›

R Language files have the suffix .R.

References