
Install and set up R and RStudio, open RStudio and explore settings, create a baseline project with a script, load packages, use base R functions, and save your workspace.
Master basic operations in R, including arithmetic, variable assignment with <- and =, printing variables, and removing variables from the workspace while clearing the console.
Learn to create an RStudio project, organize scripts into a project folder, save and run scripts, and use # comments to document code.
Explore r's numeric types, including integers, doubles, complex numbers, and logical values, then learn string manipulations, regular expressions, and data type conversions across sections.
Explore complex numbers in R by identifying the real and imaginary parts and applying addition, subtraction, multiplication, division, and conjugation, with i^2 = -1.
learn how to use the logical data type for tests in R, evaluate true and false expressions, and understand reserved true and false values like t and f.
Explore special R values like NA, NaN, and Inf, learn how they affect arithmetic and tests (is.na, is.nan), and master data type conversion between numeric, logical, and character in R.
Master the section on integers, numeric types, strings, and data type conversions, then tackle assignment 2 with four tasks on calculations, complex numbers, strings, and regular expressions.
Create and manipulate arrays in R with array and binding vectors, forming 2d, 3d, and higher dimensional arrays. Access, slice, and modify elements, assign dimnames, and apply functions across margins.
Explore vectors, matrices, arrays, and lists in r for beginners through assignments that cover creating and splitting a 1–100 vector, and performing matrix and list operations.
Explore the section on data structures in R for beginners, covering factors, date and time objects, and data frames, then learn to import and export data from Excel or CSV.
Export data from your workspace to multiple file formats, including text, Excel, JSON, and relational databases or flat files, using R export tools and wrappers.
Walk through assignment 4 in R for beginners: import and merge data, convert dates, order by date and coin, compute per-coin stats, and export to text and excel using rio.
Explore nested loops in R, using for and while loops to traverse matrices and three-dimensional arrays, and learn about performance considerations and techniques to avoid loops discussed in part 1.
Explore how to use nested for loops in R to iterate over matrices and arrays, including 3-dimensional arrays, by looping over rows and columns and printing each element.
Learn to write your own functions in R with function syntax, default arguments, and returning values; explore returning multiple outputs with a list and using ellipses to pass extra arguments.
Explore how vectorized coding in R replaces loops for faster, cleaner code, and use the apply family to operate on matrices and lists with logical testing and element-wise selection.
Explore vectorized coding in r with the apply family functions (lapply, sapply), perform max over list elements, extract elements from lists and matrices, and use replicate for random digit generation.
Plot two numeric variables with plot, customize color, axis limits, labels, and title, and build an R script to reproduce a scatter plot from air quality data (wind and ozone).
Learn to draw box plots in R to visualize the distribution of a numeric variable, showing median, quartiles, and interquartile range, including comparisons across a factor like cylinders.
Learn to create bar charts in R, including stacked and grouped options, using a data frame of cylinders and mpg. Use table counts and barplot with labels and colors.
Use the par function to customize graphical parameters in base R, including symbols, colors, text size, axis labels, and margins for publication-ready plots.
Learn base graphics in R with ggplot2 to analyze diamonds data, create a volume column, price versus volume by cut, and explore coin toss and dice simulations with histograms.
Are you one of the people that would like to start a data science career or are you just fond of using data for data analysis in your spare time or for your job? Do you use spreadsheets for data cleaning, wrangling, visualization, and data analysis? I think it is time to enhance your hobby or your career path with learning adequate skills such as R.
R is s a programming language that enables all essential steps when you are dealing with data like:
importing,
exporting,
cleaning,
merging,
transforming,
analyzing,
visualizing,
and extracting insights from the data.
Originally R began as a free software environment for statistical computing with graphics supported. Over the years with the rapid development of computing power and the need for tools used for mining and analyzing tons of data that are being generated on every step of our lives, R has emerged into something much greater than its original laid path. Nowadays the R community is vast, every day thousands of people start learning R, and every day new R's libraries are being made and released to the world. These libraries solve different users' needs because they provide different functions for dealing with all kinds of data.
If you are still not convinced to join me on a journey where foundations for your R skills will be laid, please bear with me a bit more. In this R for Beginners course, you will dive into essential aspects of the language that will help you escalate your learning curve. Course first gently touches the basics like:
how to install R and how to install R's Integrated Development Environment (IDE) RStudio,
then you will learn how to create your first R script and R project folder,
R project folder will be your baseline folder where all your scripts and assignments will be saved,
you will learn how to install different R packages and how to use functions provided with each package.
After these first steps, you will dive into sections where all major R data structures are presented. You will be able to:
differentiate among each data structure,
use built-in functions to manipulate data structures,
reshape, access elements, and convert R objects,
import data from many different sources into R's workspace and
export R objects to different data sources.
When you will have a grasp of what R is capable of, a section devoted to programming elements will guide you through essential steps for writing a programming code that can execute repetitive tasks. Here you will master:
your first loops,
conditional statements,
your custom made functions,
and you will be able to optimize your code using vectorization.
It is said that a picture can tell an observer a powerful story and holds a stronger message than a thousand words combined. In the final section of this course, the greatest R's power is revealed, the power to tell the story by using data visualization. Here you will master how to build:
scatterplots,
line charts,
histograms,
box plots,
bar charts,
mosaic plots,
how to alter R's default graphical parameters to make beautiful figures,
and how to export a figure from R to a proper format for further sharing with your colleagues.
If you are still not convinced to start learning R, I will share with you how the course is structured:
Each section holds separate exercises covering learning material that is related to the section's topic.
Normally each exercise begins with a short intro that provides a basic understanding of the topic, then a coding exercise is presented.
During coding exercise, you will write the R code for executing given tasks.
At the end of each section, an assignment is presented.
Each assignment tests the skills you have learned during a given section.
In the last two assignments, you will write a code to build a simulation environment where you will execute the simulation and present the results with proper visualization techniques.
Do not lose more time and please enroll in the course today. I guarantee you will learn a lot and you will enjoy the learning process.