kurtosi {psych} | R Documentation |
Find the kurtosis of a vector, matrix, or dataframe.
kurtosi(x, na.rm = TRUE)
x |
vector, matrix, or data frame |
na.rm |
na.rm =TRUE removes missing data from the column |
Kurtosis in the E1071 package finds the kurtosis for a single vector. This does it for matrices and dataframes. Used in the describe function.
kurtosi |
a vector of the kurtosis for each column of the matrix |
The mean function supplies means for the columns of a data.frame, but the overall mean for a matrix. Mean will throw a warning for non-numeric data, but colMeans stops with non-numeric data. Thus, the function uses either mean (for data frames) or colMeans (for matrices). This is true for skew and kurtosi as well.
William Revelle
round(kurtosi(attitude),2)