← Back to R Course | Chapter 9: Statistics | Lesson 3 of 7

summary() का उपयोग

summary आपके data के लिए एक quick report card देता है, सबसे छोटी, middle, और सबसे बड़ी values जैसी key facts दिखाते हुए। यह आपको एक line में एक dataset से परिचित कराने में मदद करता है।

In this page:

  1. summary()
Syntax
r
summary(x)
summary(df)

summary()

summary() एक numeric vector या data frame का एक quick statistical overview produce करता है -- minimum, 1st quartile, median, mean, 3rd quartile, और maximum।

एक पूरी data frame पर apply होने पर, यह एक साथ हर column summarize करता है। एक नया dataset load करने के बाद इसकी shape की quick समझ पाने के लिए यह आमतौर पर पहला function चलता है।

Note: एक पूरी data frame पर चलाया summary(df) आपको एक call में एक quick per-column overview देता है।

उदाहरण: summary()

markup
values <- c(23, 5, 67, 12, 45, 30, 8)

print(summary(values))
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. यह उम्मीद करना कि summary() सिर्फ numbers return करेगा, जब एक factor या character के लिए यह counts या class information देता है।
  2. यह भूल जाना कि NA वाले एक vector पर summary() एक separate NA's count दिखाता है जबकि बाकी stats इन्हें ignore करते हैं।
  3. यह मान लेना कि Mean और Median same value हैं, जब इनके बीच एक बड़ा gap skewed data दिखाता है।
🔒

Chapter Quiz — Complete all 7 topics to unlock

0/7 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.