← Back to R Course | Chapter 1: Getting Started | Lesson 6 of 6

Getting Help

In this page:

  1. Getting Help

Getting Help

R's built-in help system is accessed with ?function_name or help(function_name), which opens documentation describing a function's arguments and behavior. example(function_name) runs the documentation's example code directly. Learning to read R's help pages is an essential skill since so much of R's power comes from its huge ecosystem of functions.

Note: ??keyword searches across all installed package documentation, not just an exact function name.

Example: Getting Help

markup
# In an interactive session these open documentation:
# ?mean
# help(mean)

# This prints a short usage description instead, for a non-interactive demo:
cat("Use ?mean or help(mean) in an interactive R session to view docs\n")
cat(args(mean))
🔒

Chapter Quiz — Complete all 6 topics to unlock

0/6 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.