Rainbow Deals - hours only!Up to 80% off on all courses and bundles.-Close
4. Displaying a function's definition
Creating functions
If statements


Great work! Have you wondered how certain R functions are defined under the hood? Well, functions are stored as objects when you define them.

Like any other object, a function can be displayed in the console when you simply type its name (without parentheses or arguments). This will output the actual code that you wrote to define the function. Give it a try!


Type the name of the function you created (full_name) to see its definition in the console.