examine: Examine

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Examine a matrix or data frame by calculating descriptive statistics of its columns

Usage

1
2
3
  examine(Matrix, na.rm = FALSE)

  is.examined(x)

Arguments

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

Details

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.

Value

An object of class "examined", basically a list with descriptive statistics.

Author(s)

Gaston Sanchez

See Also

summary

Examples

 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])

gastonstat/examiner2 documentation built on May 16, 2019, 5:45 p.m.