Skip to content

Eggy115/R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

R

This repository contains R programs and scripts under the GPL v3 license.

Table of Contents

Getting Started

What is R

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.

Installing R-Lang

Here are the steps to install R-lang on different operating systems:

Windows

  1. Go to the R for Windows page on CRAN (Comprehensive R Archive Network).
  2. Click on the "Download R x.x.x for Windows" link (where x.x.x represents the version number).
  3. Click on the "install R for the first time" link.
  4. Run the downloaded .exe file and follow the installation wizard.

macOS

  1. Go to the R for macOS page on CRAN.
  2. Click on the "Download R-x.x.x.pkg" link (where x.x.x represents the version number).
  3. Run the downloaded .pkg file and follow the installation wizard.

Linux

For Ubuntu and Debian-based systems:

  1. Open a terminal window.
  2. 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'
  1. Add the CRAN GPG key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
  1. 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.

Installing Repository

  1. Clone the repository
git clone https://github.com/Eggy115/R.git
  1. Install required packages by running the following command in R console:
install.packages(c("package name"))

Usage

Running Scripts

  1. Open R console or RStudio
  2. Navigate to the directory containing the script
  3. Run the script using the source command:
source("script_name.R")

Running Programs

  1. Open R console or RStudio
  2. Navigate to the directory containing the program
  3. Run the program using the Rscript command:
Rscript program_name.R

Contributing

Contributions are always welcome! Here are some ways you can contribute:

  1. Fork the repository and make your changes.
  2. Submit a pull request with your changes.
  3. 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.

License

This project is licensed under the GPL v3 License - see the LICENSE file for details.