Define Custom Functions in R | Finance Train