First, it is not a good idea to name an object table
since this is the name of a very basic function in R.
It is not possible to exclude the statistics based on logical vectors from the object returned by describe
, since both logical vectors and factors are indicated by an *
. A solution is to exclude all logical columns from the object passed to describe
.
For your data frame table
:
describe(table[ , !sapply(table, is.logical)])