summary_vars function

Summarise variables

Summarise variables

summary_vars(x)

Arguments

  • x: Matrix or dataframe with variables in columns

Returns

A matrix with variables in rows and mean, median and SD for each variable or number of levels if the variable is a factor. If NA are detected, an extra column n.NA is added with the numbers of NA for each variable.

  • Maintainer: Myles Lewis
  • License: MIT + file LICENSE
  • Last published: 2025-03-10

Downloads (last 30 days):