Concept Flow - Return values
Start function call
Execute code inside function
Return value encountered?
No→Continue execution
Yes
Send value back to caller
Function ends
This flow shows how an R function runs its code and sends a value back to where it was called using a return statement.