Describes an object.
Arguments
- x
An R object (should be a
matrix
or adata.frame
).- ...
Currently not used.
See also
Other data summaries:
sparsity()
Examples
## Create a data matrix
X <- matrix(sample(0:9, 15, TRUE), nrow = 3, ncol = 5)
## Add NA
k <- sample(1:15, 3, FALSE)
X[k] <- NA
## Sparsity
sparsity(X)
#> [1] 0
## Quick description
describe(X)
#> 3 observations, 5 variables:
#> * 5 numeric variables.
#> * 0 categorial variables.
#> * 0 binary variables.
#>
#> 3 missing values:
#> * 3 observations (100%) contain missing values.
#> * 2 variables (40%) contain missing values.
#>
#> Data checking:
#> * 0% of numeric values are zero.
#> * 0 variables with no variance.