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

getwd() function in R with Example

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

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 factor in R: How to Use as.factor() Function in R

as.factor() Function in R with Example

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

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