## 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

## 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

## NA in R: How to Represent Missing Data in R

R has two ways of representing missing data that are NaN and Na. The NaN means “Not a Number”, and it means there is a result, but it cannot be represented in the computer. The second is NA means Not Available, which means that the data is missing for unknown reasons. So let’s deep dive … Read more

Categories R

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

To concate strings in R, use the paste() function. The paste() function converts its input arguments to character strings and concatenates them. paste() in R The paste() is a built-in R function used to concatenate vectors by converting them into character. The paste() method takes three parameters, and returns concatenated string. The paste0() function in … Read more

Categories R