# R \(statistical computing\)

Free programming language and environment for statistical computing, data analysis and graphics with an extensible package ecosystem\.

ID: Q552 · Revision: 599

Type: software · License: GPL\-2 or GPL\-3 for R; individual files and packages can have different licenses[^r-license] · Status: active

Website: https://www.r-project.org/



R is a programming language and environment for statistical computing and graphics\. It provides statistical methods, data handling and programmable analysis, with additional capabilities supplied through packages\. R is the computational system; an editor such as RStudio can help operate it but is not required to define the language or replace its runtime\.[^r-about]

## Screenshots

![Blue capital R in front of a gray oval ring, the R statistical\-computing logo\.](/api/v1/images/172ab7b5-eab5-4054-8c93-89e9f1711f18?entity=Q552&revision=599)

R logo\. · Captured 2026-10-12 · R logo © 2016 The R Foundation\. CC BY\-SA 4\.0 \(https://creativecommons\.org/licenses/by\-sa/4\.0/\)\. Official PNG, unmodified apart from site image conversion; retrieved 2026\-10\-12\. · CC-BY-SA-4.0

Source: <https://www.r-project.org/logo/> · Rights: <https://www.r-project.org/logo/>

## Programmable statistical work

R includes facilities for statistical modeling, tests, classification, clustering and graphics, and can be extended with packages\. A script can connect data preparation, analysis and output into a repeatable sequence\. The available method depends on the selected implementation and its options, so the presence of a package ecosystem should not be treated as proof that every specialized proprietary procedure has an identical counterpart\.[^r-about]

## Importing and interpreting datasets

The R data import/export manual describes text files, database connections and packages for formats from other statistical systems\. Encoding, column types and file conventions affect whether imported data are interpreted as intended\. For larger data sources, database\-side selection can be preferable to assuming that all manipulation must happen inside a single in\-memory analysis session\.[^r-import]

The haven package provides SPSS file import and export as one concrete interoperability route\. Its default reader converts user\-defined missing values to R's NA; an option instead preserves their SPSS\-labelled representation\. That choice can change what information survives the handoff\. Importing a file successfully is therefore not enough to establish that its metadata and missing\-value semantics were retained in the intended form\.[^r-haven]

## Packages and reproducible environments

An analysis can depend on package versions as well as its script and data\. The renv tooling creates project\-specific libraries and records dependency versions in a lockfile for later restoration\. This helps describe the software environment needed to rerun work, but is distinct from archiving the input data or proving that the statistical choices are appropriate\.[^rstudio-renv]

## Platforms and licensing

R runs on Windows, macOS and a range of Unix\-like systems\. R as a package is licensed under GPL\-2 or GPL\-3, with some individual files and associated packages governed differently\. Reusing an analysis that depends on additional packages therefore requires attention to those packages' availability and terms rather than assuming one license covers the whole working environment\.[^r-about][^r-license]

## Substitution considerations

R can substitute for [IBM SPSS Statistics](/ibmspssstatistics) for scripted analyses when suitable methods and data\-import paths are available\. The tradeoff is a programming\-centered workflow and responsibility for selecting packages and managing dependencies\. SPSS datasets can be imported through documented tools, but this does not translate SPSS commands or guarantee matching defaults and output\.[^r-about][^r-haven][^spss-syntax]

## Capabilities and substitutions

### Programmable statistics and graphics — supported

Core language and packages support scripted analytical workflows\.[^r-about]

Use case: Repeatable statistical analysis · Platforms: Windows, macOS, Unix\-like systems · Region: Distribution, package availability, selected license and institutional data policies apply\.

### SPSS data interchange — limited

Packages such as haven read/write supported files; missing\-value and label handling must be selected deliberately\.[^r-haven]

Use case: Dataset migration · Platforms: Windows, macOS, Unix\-like systems · Region: Distribution, package availability, selected license and institutional data policies apply\.

### [Substitute for IBM SPSS Statistics](/ibmspssstatistics) — limited

Assessment: supported methods can replace particular analyses; scripts, defaults, packages and imported metadata require deliberate migration\.[^r-about][^r-haven][^spss-syntax]

Use case: Scripted statistical analysis · Platforms: Windows, macOS, Unix\-like systems · Region: Distribution, package availability, selected license and institutional data policies apply\.

## References

[^r-license]: [R licenses](<https://www.r-project.org/Licenses/>) — R package GPL\-2 or GPL\-3; packages/files can differ (vendor; retrieved 2026-10-06T21:51:33Z)

[^r-about]: [About R](<https://www.r-project.org/about.html>) — Statistical computing language, graphics, packages and platforms (vendor; retrieved 2026-10-06T21:51:33Z)

[^r-import]: [R data import/export manual](<https://cran.r-project.org/doc/manuals/r-release/R-data.html>) — Imports, encodings, external statistical data and database connections (vendor; retrieved 2026-10-06T21:52:39Z)

[^r-haven]: [Haven SPSS file I/O](<https://haven.tidyverse.org/reference/read_spss.html>) — SAV/POR/ZSAV, variable labels and user\-defined missings converted to NA by default (vendor; retrieved 2026-10-06T21:52:39Z)

[^rstudio-renv]: [RStudio renv integration](<https://docs.posit.co/ide/user/ide/guide/environments/r/renv.html>) — Project\-local library and snapshot/restore lockfile (vendor; retrieved 2026-10-06T21:52:39Z)

[^spss-syntax]: [SPSS dialog\-generated syntax](<https://www.ibm.com/docs/en/spss-statistics/29.0.0?topic=syntax-pasting-from-spss-statistics-client-application>) — SPSS Statistics 29 documentation, Pasting Syntax from the IBM SPSS Statistics Client Application: steps 6–8 describe pasting syntax for selected procedure\-dialog options into a reusable command file\. (vendor; retrieved 2026-10-12T05:39:00Z)

[^source-7]: [https://www\.r\-project\.org/logo/](<https://www.r-project.org/logo/>) — Checked 2026\-10\-12: official 724 × 561 PNG and explicit © 2016 The R Foundation / CC BY\-SA 4\.0\. Also opened https://www\.ibm\.com/docs/en/spss\-statistics/29\.0\.0?topic=syntax\-pasting\-from\-spss\-statistics\-client\-application ; steps 6–8 support generating reusable command syntax from dialog selections\. Updated both matching citation locations and their checked date\. (vendor; retrieved 2026-10-06T21:51:33Z)

Source revision: https://substitutefor.net/entities/Q552?revision=599
