If x
is not numeric, the built-in summary command is executed.
If x
is numeric (that is, is.numeric(x)
returns TRUE), then a list with the following elements is returned:
casesThe number of non-missing values in x
(Valid N)
naThe number of missing values in x
(Missing N).
meanThe mean value of x
after missing values are removed. See mean
sdThe standard deviation for values in x
. See sd
minThe minimum/smallest value in x
. See min
maxThe maximum/largest value in x
. See max
This function also calculates the following statistics, but these are not printed by default unless extended is set to TRUE
varThe variance of x
after missing values are removed. See var
medianThe median value of x
after missing values are removed. See median
p25The 25th percentile of x
after missing values are removed
p75The 75th percentile of x
after missing values are removed
skewnessThe skewness coefficient for x
after missing values are removed. See skewness
kurtosisThe kurtosis coefficient for x
after missing values are removed. See kurtosis