# Learn R from Scratch (Educative)

Variables - Data Types Let's begin with discussing the basic data types in R, declaring variables and more. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/3YrPPl7PnrR). Conclusion - More on R Language In this lesson, we briefly touch upon installing packages in R language. Getting Started - Who Should Take This Course? Here, we outline the intended audience and prerequisites for this course. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/g7plY0BxrZD). Variables - Exercise 1: Variables Let's try practicing the concepts and syntax we have learned so far. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/NElpv6A3mOz). Variables - Solution Review: Variables In this review, we give a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/m27kEOPBW69). Variables - Solution Review: Strings In this review, we give a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/YVQAPqY34Rn). Variables - All About Strings This chapter introduces you to the basic concepts of character strings in R. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/q2P9gVxjwW7). Exploring R Objects - Solution Review: Vectors and Lists In this review, we give a detailed analysis of the solution to the exercise. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/gxqA6DOEr26). Getting Started - Why R? Here’s why you should learn R. It is a data analytics tool that has many advantages. This language helps in performing statistical tests, data analyses, creating models, and provides ways to manage and manipulate data. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/gkQB0ZVvXZ3). Exploring R Objects - Exercise 5: Data Frames Let's test your understanding of data frames. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/B8nB3ELA7Pn). Variables - Test Your Knowledge 1 Let's take a small quiz! View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/RMLJx6A89Nw). Variables - Exercise 2: Strings Let's test your understanding of strings. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/qVV2pNxVWJy). Exploring R Objects - Arrays In this lesson, we will learn what arrays are in R and how to create them. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/mE6q8g31Ox9). Exploring R Objects - Matrices In this lesson, we will discuss matrices. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/g2NXV2QZO79). Exploring R Objects - Solution Review: Arrays and Matrices In this review, we give a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/x1Eq9En9Jzq). Exploring R Objects - Data Frames In this lesson, we will introduce you to data frames. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/7n1GBE9J4JO). Exploring R Objects - Lists In this lesson, we will learn all about lists and how to create them. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/R89kV9AqMl0). Exploring R Objects - Vectors Here, we will learn what vectors are in R and how to create them. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/3w7D405V7V9). Exploring R Objects - Exercise 3: Vectors and Lists Let's test your understanding of vectors and lists. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/m2Mxv3lrlpR). Exploring R Objects - Exercise 4: Arrays and Matrices Let's test your understanding of arrays and matrices. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/JYzNoK0gGyo). R Operators and Notation - Solution Review: Relational and Logical Operators In this review, we give a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/JPrPk2rkn49). Loops - for Loops In this lesson, we will learn another type of loop: the for loop. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/B10DjYloo0N). Conditional Statements - Exercise 8: if/else Statements Let's test your ability to write if else statements. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/m2yX657v1Wn). Functions - Solution Review: Creating Functions In this review, we provide a detailed analysis of the given problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/JY839xBq9Ql). Loops - Solution Review: while Loops In this review, we provide a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/myg3MpJ703R). Loops - Solution Review: for Loops In this review, we provide a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/q2LD7w1jy5G). Functions - Returning from a Function In this lesson, we will learn how to return a value from a function in R. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/myl7OrD2290). Functions - Exercise 14: Recursion Let's test your ability to use recursion. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/qV1k7qExy47). Functions - Test Your Knowledge 6 Let's take a small quiz! View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/q2XgAmm2vL2). Exploring R Objects - Solution Review: Data Frames In this review, we give a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/q280vRlDnoy). Exploring R Objects - Test Your Knowledge 2 Let's take a small quiz! View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/xoKAkVY97n3). R Operators and Notation - Relational Operators In this lesson, we will learn the basic relational operations in R and how to use them. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/RMk2OBmp0AV). R Operators and Notation - Solution Review: Arithmetic Operators In this review: we give a detailed analysis of the solution to this exercise. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/7AzZBJJPDzA). R Operators and Notation - Exercise 7: Relational and Logical Operators Let's test your understanding of relational and logical operators. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/xV6m86BJPRJ). Exploring R Objects - Factors Here we are going to learn about R factors: how to create them and where they are used. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/B18wx87v67Q). R Operators and Notation - Arithmetic Operators In this lesson, we will learn the basic arithmetic operations in R and how to use them. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/mEDoqYr9mor). Conditional Statements - if Statements In this lesson, we will learn about if statements. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/mE1YK1GnBA0). Conditional Statements - Solution Review: if/else Statements In this review, we provide a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/YMB9oABq7w0). R Operators and Notation - Logical Operators In this lesson, we will learn the basic logical operations in R and how to use them. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/B841NGEZJXo). R Operators and Notation - Exercise 6: Arithmetic Operators Let's test your understanding of Arithmetic Operators. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/m2Ev156Z64r). Conditional Statements - R ifelse() Here, we are going to have a look at the method "ifelse()" provided by R language. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/mEGWomYjE93). Loops - Exercise 11: for Loops Let's test your ability to write for loop. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/JYEg8BW7y2K). Functions - Nested Functions We are going to learn all about nested functions in this lesson. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/g7l8DBnwxlY). Functions - Recursion In this lesson, we will briefly go through recursion. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/RLDN8KXXYEK). Conditional Statements - switch Statements In this lesson, we will learn all about switch statements, their use, and syntax. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/qV6BRxgnBN2). Conditional Statements - Test Your Knowledge 4 Let's take a small quiz! View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/xVqW52D12Gl). Loops - Introduction to Loops Let's begin learning all about loops in R. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/gxpZp3L4MkY). Input/Output - Exercise 17: Handling CSV files Let’s test your ability to handle .csv files. Exception Handling - Test Your Knowledge 8 Let’s take a small quiz! Fun Challenges - Challenge 1: Append Hearts In this challenge you have to create a vector whose every element contains the string “<3” replicated the number of times mentioned in the input vector. Fun Challenges - Challenge 3: Find the Highest Achiever Given multiple subject files find the student who has the maximum total marks. R Operators and Notation - Test Your Knowledge 3 Let's take a small quiz! View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/NELJpkZ1kj6). Functions - Solution Review: Returning from a Function In this review, we give a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/qVJkOkp5p23). Loops - Exercise 10: while Loops Let's test your ability to write while loop. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/YMX7xrEgMPW). Conditional Statements - if...else Statements Let's build upon our concepts of the original if statements with the else statement. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/NEEznEjrEW8). Loops - repeat Loops We will be learning all about the repeat statement in this lesson. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/3w0wwL43BLO). Conditional Statements - Exercise 9: ifelse() Let's test your understanding of the "ifelse()" function. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/7nnzG7G368G). Functions - Exercise 13: Returning from a Function Let's test your ability to return data from a function. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/3Ykw8ELgp9A). Input/Output - Exercise 16: Handling TXT files Let’s test your ability to handle .txt files. Input/Output - Solution Review: Handling TXT files In this review, we provide a detailed analysis of the solution to this problem. Loops - while Loops In this lesson, we will learn all about the while loop in R language. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/R1zmx3DJ8GE). Conditional Statements - Solution Review: ifelse() In this review, we provide a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/7A7PMZQ9Ery). Functions - Solution Review: Recursion In this review, we give a detailed analysis of the solution to this problem. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/myBXPlVpWA0). Loops - Test Your Knowledge 5 Let's take a small quiz! View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/qZOkLnAmBgk). Input/Output - Entering Data from the Keyboard In this lesson, we will learn about getting data from the user. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/qVBvnmDj7k3). Functions - Creating Functions In this lesson, we will learn what functions are and how to create them in the R language. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/3991rjXlJOR). Input/Output - Handling TXT files Let's get our hands dirty by taking input from .txt files View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/my8D6Q89KvG). Functions - Exercise 12: Creating Functions Let's test your ability to create functions. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/JP3MxEzo1WP). Fun Challenges - Solution Review: Append Hearts In this review, we provide a detailed analysis of the solution to the given problem Input/Output - Handling CSV files Let’s learn how to input and output data using .csv files Fun Challenges - Challenge 2: Find Mean and Median Given a file containing a list of numbers, output a file that contains the mean and median of those numbers Exception Handling - Try Catch Let’s learn how to actually perform exception handling using try catch. Exception Handling - Solution Review: Try Catch In this review, we provide a detailed analysis of the solution to this problem. Input/Output - Solution Review: Handling CSV file In this review, we provide a detailed analysis of the solution to the problem. Fun Challenges - Solution Review: Find Mean and Median In this review, we give a detailed analysis of the solution to the problem of finding mean and median. Input/Output - Test Your Knowledge 7 Let’s take a small quiz! Exception Handling - Exercise 18: Try Catch Let’s test your understanding of using try catch in R code. Exception Handling - Other Methods for Exception Handling In this lesson, we mention some other functions that can be useful while handling exceptions. Exception Handling - Introduction to Exception Handling In this lesson, we will give a brief introduction to exception handling in R. Fun Challenges - Solution Review: Find the Highest Achiever In this review, we give a detailed analysis of the solution to the problem of finding the highest achiever. Getting Started - Hello World The first step to learning any language is the classic "Hello World" program. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/xoYnomMAwZP). Variables - Difference Between print() and cat() In this lesson, we provide details about the differences between print() and cat(). View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/JPkVlp8wWVJ). Variables - Basic Methods for Handling Variables In this lesson, we’ll learn how to List and Delete variables. View the lesson [here](https://www.educative.io/courses/learn-r-from-scratch/gk7kxQvQRBr).