Solution Review: Creating Functions
In this review, we provide a detailed analysis of the given problem.
We'll cover the following...
We'll cover the following...
Solution: Creating a Function
Explanation
Create a function using the following syntax:
evenOdd <- function(testVariable)
{
<Conditional Block>
}
The function takes an argument testVariable and accordingly performs some tasks on it.