This repository contains R programs and scripts under the GPL v3 license.
R (R-Lang) is a programming language and environment for statistical computing and graphics. It provides a wide variety of statistical and graphical techniques, including linear and nonlinear modeling, classical statistical tests, time-series analysis, classification, clustering, and more.
R is free and open-source software and is widely used by statisticians, data scientists, and researchers in various fields, including academia, industry, and government. It is highly extensible and has a large ecosystem of packages and libraries that provide additional functionality and tools for various tasks.
Here are the steps to install R-lang on different operating systems:
- Go to the R for Windows page on CRAN (Comprehensive R Archive Network).
- Click on the "Download R x.x.x for Windows" link (where x.x.x represents the version number).
- Click on the "install R for the first time" link.
- Run the downloaded .exe file and follow the installation wizard.
- Go to the R for macOS page on CRAN.
- Click on the "Download R-x.x.x.pkg" link (where x.x.x represents the version number).
- Run the downloaded .pkg file and follow the installation wizard.
For Ubuntu and Debian-based systems:
- Open a terminal window.
- Enter the following command to add the CRAN repository to your sources list:
sudo sh -c 'echo "deb https://cran.rstudio.com/bin/linux/ubuntu $(lsb_release -cs)-cran40/" >> /etc/apt/sources.list'
- Add the CRAN GPG key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
- Update your package lists and install R:
sudo apt-get update
sudo apt-get install r-base
For other Linux distributions, refer to the documentation on the R for Linux page.
- Clone the repository
git clone https://github.com/Eggy115/R.git
- Install required packages by running the following command in R console:
install.packages(c("package name"))
- Open R console or RStudio
- Navigate to the directory containing the script
- Run the script using the
source
command:
source("script_name.R")
- Open R console or RStudio
- Navigate to the directory containing the program
- Run the program using the
Rscript
command:
Rscript program_name.R
Contributions are always welcome! Here are some ways you can contribute:
- Fork the repository and make your changes.
- Submit a pull request with your changes.
- Create an issue if you find a bug or have a feature request.
Please make sure to adhere to the code of conduct and the contributing guidelines.
This project is licensed under the GPL v3 License - see the LICENSE file for details.