min in R: How to Find Minimum Value of Vector

R min() Function - 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

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

col() Function in R with Example

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

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

atan2() Function in R with Example

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

NULL in R: What is NULL Object in R Programming

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

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

as.vector() Function in R with Example

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

floor in R: How to Calculate Floor of Number

R Floor - How to Calculate Floor of Number in R

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

NA in R: How to Represent Missing Data in 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

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

Paste in R - How to Concate Vectors using 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