Section 36 Data Analysis: Function summary
Read the help file for the function
summary
Use the function
summary
for the full data.frameNote how the summary information are presented for different types of variables.
##summary
'data.frame': 100 obs. of 5 variables:
$ ID : chr "S1" "S2" "S3" "S4" ...
$ Wt : num 11.17 11.42 9.78 9.09 11.21 ...
$ Age: num 1.59 1.89 1.12 1.51 1.66 1.77 1.09 1.07 1.56 NA ...
$ Sex: chr "M" "M" "M" "M" ...
$ Vac: logi TRUE TRUE FALSE FALSE TRUE FALSE ...
$names
[1] "ID" "Wt" "Age" "Sex" "Vac"
$row.names
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[18] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
[35] 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
[52] 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
[69] 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
[86] 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
$class
[1] "data.frame"
ID Wt Age Sex
Length:100 Min. : 5.240 Min. :1.020 Length:100
Class :character 1st Qu.: 8.815 1st Qu.:1.260 Class :character
Mode :character Median :10.980 Median :1.530 Mode :character
Mean :10.489 Mean :1.515
3rd Qu.:11.825 3rd Qu.:1.790
Max. :14.950 Max. :2.000
NA's :1 NA's :1
Vac
Mode :logical
FALSE:47
TRUE :53