## 11 Types of Special Matrices in R (and how to create them) [Examples]

In this article, we discuss 11 types of special, frequently used matrices. We show how to create them with basic R code, and give examples.

## How to Create a Vector with Random Numbers in R [Examples]

In this article, we show how you create a vector with random numbers. That is, with random integers, random numbers between 0 and 1, etc.

## How to Replace Missing Values with the Median in R

In this article, we demonstrate how you can replace missing values in a data frame with the median. We use R base code and the tidyverse package.

## How to Replace NA’s with the Mode (Most Frequent Value) in R

In this article, we discuss how to replace missing values in R with the mode (i.e., most frequent value). To do so, we first create a function to calculate the mode.

## How to Remove All Columns with a Common Prefix/Suffix in R [Examples]

In this article, we provide R code to remove columns with a common prefix/suffix from a data frame.

## 3 Easy Ways to Remove Empty Columns in R [Examples]

IN this article, we discuss 3 method to identify and remove empty columns from an R data frame. All 3 methods are dynamic and don’t require to explicitly specify the column name.

## 3 Simple Ways to Count the Number of Words in a Character String in R [Examples]

In this article, we discuss 3 methods to count the number of words in a string. We also show which method is the quickest.

## 3 Easy Ways to Reverse a String in R [Examples]

In this article, we discuss 3 easy ways to reverse a the characters in a string. We also show how to reverse the words in a string.

## 3 Ways to Replace Missing Values with the Median per Group in R

In this article, we explain how to replace missing values with the median per group.