# Tag Archives: R Math-Function

prod() function in R Language is used to return the multiplication results of all the values present in its arguments. Syntax: prod(…) Parameters: …: numeric… Read More
outer() function in R Programming Language is used to apply a function to two arrays. Syntax: outer(x, y, FUN=”*”, …) Parameters:  x, y: arrays FUN:… Read More
rowMeans() function in R Language is used to find out the mean of each row of a data frame, matrix, or array. Syntax: rowMeans(data) Parameter:… Read More
R Language offers a direct function that can compute the nCr value without writing the whole code for computing nCr value. Syntax: choose(n, r) Parameters:… Read More
R Language offers a factorial() function that can compute the factorial of a number without writing the whole code for computing factorial. Syntax: factorial(x) Parameters:… Read More
exp() function in R Language is used to calculate the power of e i.e. e^y or we can say exponential of y. The value of… Read More
R Language provides an inbuilt function round() which rounds off to the given number of digits, if no number of digits is provided for round… Read More
trunc() function in R Language is used to return the largest integer that is smaller than or equal to x (i.e : rounds downs the… Read More
rad2deg() function in R Language is used to convert the specified radian value to degree value. Note: This function requires ‘grid’ package to be installed.… Read More
deg2rad() function in R Language is used to convert the specified degree value to radian value. Note: This function requires ‘grid’ package to be installed.… Read More
atan() function in R Language is used to calculate the inverse tangent value of the numeric value passed to it as argument. Syntax: atan(x) Parameter:… Read More
acos() function in R Language is used to calculate the inverse cosine value of the numeric value passed to it as argument. Syntax: acos(x) Parameter:… Read More
asin() function in R Language is used to calculate the inverse sine value of the numeric value passed to it as argument. Syntax: asin(x) Parameter:… Read More
tan() function in R Language is used to calculate the tangent of the numeric value passed to it as argument. Syntax: tan(x) Parameter: x: Numeric… Read More
tanh() function in R Language is used to calculate the hyperbolic tangent of the numeric value passed to it as argument. Syntax: tanh(x) Parameter: x:… Read More