## What is the cos() Function in R

The cos() function in R is “used to calculate the cosine of a number in radians”. Syntax cos(x) Parameters x: The cos() function takes x as a numeric or complex vector argument. To convert degrees to radians, use the following formula. radians = degrees * ( pi / 180.0 ) Example 1: Simple use of the … Read more