R is a language and environment for statistical computing and graphics. R provides a wide variety of statistical (linear and nonlinear modeling, classical statistical tests, time-series analysis, classification, clustering, …) and graphical techniques, and is highly extensible. You can refer to the following tutorials on a range of topics in R.

Table of Contents

## R built-in Mathematical Functions

- Get the Absolute Value in R using abs()
- Get the Square Root in R using sqrt()
- How to use the ceiling() function in R?
- How to use the floor() function in R?
- Common Trigonometric Functions in R
- Get the Log of a Value in R – With Examples

## Working with the Character type in R

- Convert Character to Numeric in R (With Examples)
- Convert Numeric Type to Character Type in R
- R – Remove Whitespaces From String
- Compare Two Strings in R (With Examples)
- Convert String to Lowercase in R
- Convert String to Uppercase in R
- Check If a String in R starts with Another String
- Check If a String in R ends with Another String
- Find the Length of a String in R (With Examples)
- Concatenate Two or More Strings in R
- R – Replace Occurrences Of Character in a String

Highlighted programs for you

Flatiron School

Flatiron School

Data Science
Bootcamp

Product Design UX/UI
Bootcamp

University of Maryland Global Campus

University of Maryland Global Campus

Cloud Computing Systems
Master's

Digital Forensics & Cyber Investigation
Master's

Creighton University

Creighton University

Health Informatics
Master's

## R Vectors

- Create a Vector in R – With Examples
- R – Get Element by Index in a Vector
- How to Print a Vector in R?
- R – Get the Length of a Vector
- R – Get Index of an Element in a Vector
- Check if an Element is present in an R Vector
- R – Sum of values in a Vector
- Average of Values in an R Vector
- Append Element to a Vector in R
- Get the Maximum value in an R Vector
- Get the Minimum Value in an R Vector
- Calculate Median of a Vector in R
- R – Remove NA Values from a Vector
- Calculate Variance of a Vector in R
- R – Get Standard Deviation of a Vector
- R – Remove Element From a Vector
- Create a Vector of Zeros in R
- Create a Vector of Ones in R
- R – Remove First Value From a Vector
- R – Remove Last Value From a Vector
- Subtract Two Vectors in R
- Combine Two Vectors Into a Single Vector in R
- How to add two vectors in R?
- R – Multiply Two Vectors Elementwise
- R – Vector Cumulative Sum (With Examples)
- R – Vector Cumulative Product (With Examples)
- R – Get Cumulative Maximum in a Vector
- R – Get Cumulative Minimum in a Vector in R
- R – Count Occurrences of a Value in a Vector
- Remove Duplicates From a Vector in R
- R – Count Distinct Values in a Vector
- R – Check If All Elements in a Vector are Equal
- Get Range of a Vector in R (With Examples)
- Compare Two Vectors For Equality in R
- Compare Two Vectors For Differences in R
- R – Sort a Vector in Ascending Order
- R – Sort a Vector in Descending Order

## R Lists

- How to Create a List in R?
- Combine Two or More Lists Into One in R
- Convert a List to Vector in R (With Examples)
- Get Length of a List in R (With Examples)
- Append Element to a List in R
- R – Remove Element From List (With Examples)
- Sum of List Elements in R (Easy Examples)
- R – Remove NA Values From a List
- Get the Minimum Value in an R List
- Get the Maximum Value in an R List
- Remove First Value From a List in R
- Remove Last Value From a List in R

## R Dataframes

- How to Create a DataFrame in R?
- How to Add a Row to a Dataframe in R?
- How to Add a Column to a Dataframe in R?
- Rename Column Name in R Dataframe
- Select One or More Columns From R Dataframe
- Reorder Columns in R Dataframe (Step by Step)
- Convert R Dataframe Column to a Vector
- Get Unique Values In R Dataframe Column
- R – Get Vector of Dataframe Column Names
- R – Count Unique Values in Dataframe Column
- Average of Values in an R Column
- Sum of Values in an R Column
- Get the Maximum Value in an R Column
- Get the Minimum Value in an R Column
- Variance of Values in an R Column (Step by Step)
- Column Standard Deviation in R (Step by Step)
- Get the Number of Rows in R Dataframe
- Get Number of Columns in R Dataframe
- Get First N Rows of a Dataframe in R
- Get Last N Rows of Dataframe in R
- Remove Rows with NA Values in R
- Rename Rows in R Dataframe (With Examples)
- R – Filter Dataframe Based on Column Value

The above were tutorials to accomplish some of the most common tasks in R. For more on the R programming language, please refer to the official R website.