## getwd in R: How to Use getwd() Function in R

R is regularly pointed at a directory on your computer. You can find out which directory by running the getwd() function, and the function does not take any argument. getwd in R The getwd() is a built-in R function that returns an absolute filepath representing the current working directory of the R process. It does not … Read more

Categories R

## min in R: How to Find Minimum Value of Vector

We have seen functions like mean, median, sd, and mode to calculate the average, middle, and dispersion of values. The min() function in R computes the minimum value of a vector or data frame. min() in R The min() is a built-in R function that takes an object as an input and returns the minimum value out of … Read more

Categories R

## col in R: How to Use col() Function in R

The col() method returns a matrix of integers indicating their column number in a matrix-like object or a factor of column labels. col() Function in R The col() is a built-in function that gets the column number of a matrix. The col() method accepts two arguments and returns the number of a matrix. Syntax col(x, … Read more

Categories R

## atan2 in R: How to Use atans2() Function in R

The atan2 is a mathematical function that returns the arctangent of the two numbers x and y. It is similar to calculating the arctangent of y / x, except that the signs of both arguments are used to determine the quadrant of the result. atan2 in R The atan2(y, x) is a built-in R function … Read more

Categories R

## duplicated in R: How to Use duplicated() Method in R

When we are working with big data, we normally find an obstacle: Repeated Values. This type of value doesn’t serve a critical problem if we have the capacity to recognize them. Once we have a list of repeated values, it is easy to remove, eliminate or extract them. R provides an inbuilt function that will … Read more

Categories R

## NULL in R: What is NULL Object in R Programming

In computer programming, null or NULL is both a value and a pointer. Null is a constant in the programming languages with zero or close to zero like nothing. If a reference points to null, it simply means that there is no value associated with it. So let’s cut the chase and coming to R Programming. To convert any … Read more

Categories R

## as factor in R: How to Use as.factor() Function in R

To create a factor variable in R, use the factor function.  as.factor() in R The as.factor() is a built-in function that converts a column from numeric to factor. It takes column or data frame x as an argument and returns the requested column specified as a factor rather than numeric. Syntax as.factor(x) Parameters x: The as.factor() function … Read more

Categories R

## Append in R: How to Add Elements to a Vector in R

Adding and removing elements from a Vector is one of the most used operations in R language. In this tutorial, we will see how to append single or multiple elements to a Vector using different approaches. Append in R To append elements to a Vector in R, use the append() method. The append() is a … Read more

Categories R

## as vector() in R: How to Use as.vector() Function

Vector is a fundamental data structure that contains elements of the same type. To check the data type of variable in R, use the typeof() function. To create a vector, use the c() function. as.vector() in R The as.vector() is a built-in R method that converts a distributed matrix into a non-distributed vector.  The as.vector() … Read more

Categories R

## floor in R: How to Calculate Floor of Number

R floor() method returns the largest integer that is smaller than or equal to the value passed to it as an argument. The ceiling() in the R method returns the smallest integer greater than or equal to the value passed to it as a parameter. floor() in R The floor() is a built-in R function … Read more

Categories R