## R Factor and Factor Levels: How to Create Factors in R

Factors are the list of unique values that are stored as integers. Factors are beneficial in data analysis for statistical modeling. Factors are data structures used for fields that take only predefined, a finite number of values (categorical data).  R Factor Factors in R are the data objects used to categorize the data and store … Read more

Categories R

## How to Use zip(), unzip() and tar(), untar() Functions in R

If you are working in R language, you should probably know that datasets are often stored as zip or tar files, and so R provides two commands to deal with zip files and R files. How to zip files in R To zip files in R, use the zip() function. The zipped file is stored inside the current … Read more

Categories R

## R List: How to Create, Access, and Modify List Elements

List in R is a data structure having elements of different data types. A Vector contains all elements of the same type is called an atomic vector, and a vector containing all elements of a different type is called List in R. R List  A list is a particular type of vector but can store mixed … Read more

Categories R

## R Vector: How to Create, Access, and Modify Vector Elements

Vector is the easiest data type in R programming language. Vector can contain multiple elements, but all the elements are of the same data type. Vector has a property called length, which returns the number of elements in the vector. In R, you can check the data type of any variable using the typeof() method. R Vector … Read more

Categories R

## What is Subsetting in R and How to Subset 1D or 2D Data

Subsetting means selecting the data from either a one-dimensional object like LETTERS or a two-dimensional object like DataFrame. You can select the data based on simple indexing, slicing and apply logical operators to get specific values. What is Subsetting in R Subsetting in R is a robust indexing feature to access object elements. Subsetting is used … Read more

Categories R

## Vector Math in R Programming Language

A vector is a primary data type in R  that contains elements of the same type. Vector has a property length through which you can count the number of elements in the vector.  To check the vector’s data type, use typeof() function. How to Create Vector in R To create a Vector in R, use … Read more

Categories R

## R While Loop: How to Use While Loop in R

The While loop executes the same code continuously until the stop condition returns TRUE. A loop is a statement that keeps running until a condition becomes FALSE.  R While loop The while loop in R executes continuously until the loop breaks or met the condition that ends the loop. The while loop control statement will … Read more

Categories R

## What is R Matrix: Create, Access, Edit, and Delete Matrix in R

R programming language has many data types like Vectors, Lists, Factors, DataFrame, Matrix, and Arrays. In this article, we will focus on the Matrix Data Type. We will see how to create, read, edit, and delete elements from the Matrix. Let’s dive. What is R Matrix R Matrix is a vector with attributes of a dimension … Read more

Categories R

## How To Install RStudio in Mac

Before installing RStudio, please make sure that you have enough free space on your local mac. We will require this space to install both R and RStudio, and when the program installs, the compressed files expand to take much more space. Now, let’s install R on Mac, and then we install RStudio. Note: For RStudio to … Read more

Categories R

## What is R Language

The R is an extensively used programming language among statisticians and data miners for developing statistical software. R language was designed as a statistical platform for data cleaning, analysis, manipulation, and representation. Way Back then, R was not a very popular programming choice, but now it has gained tremendous applications and traction. According to the … Read more

Categories R