summary() का उपयोग
summary आपके data के लिए एक quick report card देता है, सबसे छोटी, middle, और सबसे बड़ी values जैसी key facts दिखाते हुए। यह आपको एक line में एक dataset से परिचित कराने में मदद करता है।
In this page:
Syntax
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()
values <- c(23, 5, 67, 12, 45, 30, 8)
print(summary(values))
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. #}
आम गलतियां
- यह उम्मीद करना कि
summary()सिर्फ numbers return करेगा, जब एक factor या character के लिए यह counts या class information देता है। - यह भूल जाना कि
NAवाले एक vector परsummary()एक separateNA'scount दिखाता है जबकि बाकी stats इन्हें ignore करते हैं। - यह मान लेना कि Mean और Median same value हैं, जब इनके बीच एक बड़ा gap skewed data दिखाता है।
🔒
Chapter Quiz — Complete all 7 topics to unlock
0/7 topics done
Complete these topics first: