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

Help कैसे लें

R का help system किसी भी tool के लिए खोलने लायक एक manual की तरह है, इसके नाम से पहले एक question mark type करके। यह बताता है tool क्या करता है और इसे कैसे इस्तेमाल करें।

In this page:

  1. Help पाना
Syntax
r
?function_name
help(function_name)
example(function_name)

Help पाना

R का built-in help system ?function_name या help(function_name) से access होता है, जो एक function के arguments और behavior describe करती documentation खोलता है।

example(function_name) documentation का example code सीधे चलाता है। R के help pages पढ़ना सीखना एक essential skill है क्योंकि R की इतनी power इसके functions के huge ecosystem से आती है।

Note: ??keyword सिर्फ एक exact function name नहीं बल्कि सारी installed package documentation में search करता है।

उदाहरण: 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))
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. parentheses के साथ ?mean() type करना, जो help खोलने की बजाय function call करता है; ?mean लिखें।
  2. एक ऐसी package से एक function search करना जो loaded नहीं है, जब ??topic या help.search() चाहिए।
  3. help page के नीचे Examples section ignore करना, जो working code दिखाता है।
चैप्टर सारांश
  • R data के साथ काम करने के लिए एक language है, और आप console में या scripts से code चला सकते हैं।
  • Comments आपका code document करते हैं, और print() और cat() results display करते हैं।
  • Help पाना आपको यह lookup करने देता है कि functions कैसे काम करते हैं।
🔒

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.