<commit_before>---
title: "Getting Started with R - Part 1: The Console and Variables"
excerpt_separator: "<!--more-->"
categories:
  - Data Science
tags:
  - R
  - Tutorial
---

Here is a very fast moving tutorial in getting started in R. Hold on to your hat
<!--more-->

I am posting this tutorial as I learn R. I will respond to feedback for errata in the comments.
{: .notice}


## Installation

Install [R-Studio](https://www.rstudio.com/). You will most likely work in it and it will direct you to get the correct version of R for your platform. If you want to install R by itself and you can get R from [CRAN](https://cran.r-project.org/). The tutorial will use R-Studio.

## Mathematical Operators
In R-Studio you can directly enter new commands in the console. Try some typing in the console. Specifically, try a few basic mathematical operations
``` R
3 + 5
3 - 5
3 * 5
3 ^ 5
13 %% 5
```<commit_msg>R-fiddle added<commit_after>---
title: "Getting Started with R - Part 1: The Console and Variables"
excerpt_separator: "<!--more-->"
categories:
  - Data Science
tags:
  - R
  - Tutorial
---

Here is a very fast moving tutorial in getting started in R. Hold on to your hat
<!--more-->

I am posting this tutorial as I learn R. I will respond to feedback for errata in the comments.
{: .notice}


## Installation

Install [R-Studio](https://www.rstudio.com/). You will most likely work in it and it will direct you to get the correct version of R for your platform. If you want to install R by itself and you can get R from [CRAN](https://cran.r-project.org/). 

## No installation
Head over to [r-fiddle](http://www.r-fiddle.org) and you can start R today without installing it. This is great if you are using a Chromebook to follow this tutorial.

## Mathematical Operators
In R-Studio you can directly enter new commands in the console. Try some typing in the console. Specifically, try a few basic mathematical operations
``` R
3 + 5
3 - 5
3 * 5
3 ^ 5
13 %% 5
```
{'fraction_non_alphanumeric': 0.09822784810126582, 'fraction_numerical': 0.012151898734177215, 'mean_word_length': 3.3620309050772628, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1679436', 'n_tokens_mistral': 610, 'n_tokens_neox': 564, 'n_words': 304}