Description Usage Arguments Details Value Author(s) See Also Examples
Examine a matrix or data frame by calculating descriptive statistics of its columns
1 2 3 | examine(Matrix, na.rm = FALSE)
is.examined(x)
|
Matrix |
A matrix to be examined |
na.rm |
logical indicating whether missing values should be removed when calculating descriptive statistics |
x |
an object to check |
This function allows you to get a general overview of a matrix with descriptive statistics such as number of missing values, minimum, maximum, mean, standard deviation, and variance.
An object of class "examined"
, basically a list
with descriptive statistics.
Gaston Sanchez
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # create a matrix
set.seed(333)
M1 = matrix(rnorm(50), nrow=10, ncol=5)
# let's examine M1
examine(M1)
# create another matrix with missing values
M2 = M1
M2[c(3, 13, 30)] = NA
# let's examine M2
examine(M2)
# let's re-examine M2 (removing NA's)
examine(M2, na.rm=TRUE)
# let's try to examine the famous 'iris' data
# examine(iris) # error
# remove column 'Species' from iris
examine(iris[,1:4])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.