Help कैसे लें
R का help system किसी भी tool के लिए खोलने लायक एक manual की तरह है, इसके नाम से पहले एक question mark type करके। यह बताता है tool क्या करता है और इसे कैसे इस्तेमाल करें।
In this page:
Syntax
?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
# 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))
Login to try C/C++/Java/PHP code in the editor
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. #}
आम गलतियां
- parentheses के साथ
?mean()type करना, जो help खोलने की बजाय function call करता है;?meanलिखें। - एक ऐसी package से एक function search करना जो loaded नहीं है, जब
??topicयाhelp.search()चाहिए। - 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: