Skip to main content
Category
Technologies

R Programming Tutorial

In our R tutorials, you'll find helpful tips and use cases to grow your programming skills. We'll keep you up to date with the latest techniques.
Other technologies:
All posts
R Programming

Chi-Square Test in R: A Complete Guide

Learn how to create a contingency table and perform chi-square tests in R using the chisq.test() function. Discover practical applications and interpret results with confidence.
Arunn Thevapalan's photo

Arunn Thevapalan

August 29, 2024

R Programming

How to Use na.rm to Handle Missing Values in R

We set na.rm = TRUE in common R functions to exclude missing (NA) values. This helps us compute accurate statistics and enhances the reliability of our results.
Vidhi Chugh's photo

Vidhi Chugh

July 3, 2024

R Programming

How to Fix the Non-Numeric Argument to Binary Operator Error in R

The non-numeric argument to binary operator error in R happens when you try to do arithmetic on non-numeric data, like a character string or factor.
Austin Chia's photo

Austin Chia

June 7, 2024

R Programming

Mastering Data Structures in the R Programming Language

Read our comprehensive guide on how to work with data structures in R programming: vectors, lists, arrays, matrices, factors, and data frames.
Vikash Singh's photo

Vikash Singh

May 23, 2024

R Programming

How to Transpose a Matrix in R: A Quick Tutorial

Learn three methods to transpose a matrix in R in this quick tutorial
Adel Nehme's photo

Adel Nehme

April 12, 2024

R Programming

Sorting Data in R

How to sort a data frame in R.
DataCamp Team's photo

DataCamp Team

April 10, 2024

R Programming

Scatterplot in R

Learn how to create a scatterplot in R. The basic function is plot(x, y), where x and y are numeric vectors denoting the (x,y) points to plot.
DataCamp Team's photo

DataCamp Team

March 31, 2024

R Programming

Operators in R

Learn how to use arithmetic and logical operators in R. These binary operators work on vectors, matrices, and scalars.
DataCamp Team's photo

DataCamp Team

March 3, 2024

R Programming

Merging Data in R

Merging data is a common task in data analysis, especially when working with large datasets. The merge function in R is a powerful tool that allows you to combine two or more datasets based on shared variables.
DataCamp Team's photo

DataCamp Team

February 29, 2024

R Programming

Axes and labels in R

Improve your graphs in R with titles, text annotations, labelling of points, minor tick marks, reference lines, custom axes, and a chart legend.
DataCamp Team's photo

DataCamp Team

February 21, 2024

R Programming

Combining Plots

Learn how to combining multiple plots in R into one graph with either the par() or layout() functions. This page includes coding examples.
DataCamp Team's photo

DataCamp Team

January 29, 2024