example(): Run the examples in the help document

If you are not familiar with new functions and packages, example() function can help to figure out how to use a new function.

Most developers include the example sources to the document

Instruction

# Show an example of seq function. example(seq) # Show an example of head function. # Show an example of seq function. example(seq) # Show an example of head function. example(head) test_function("example") success_msg("Great! Head over to the next exercise.")

Previous: 1-8 | library(): load installed packages

Next: 1-10 | c(): combine values into a vector or a list

Back to Main