desc_data: A desc_data Function

View source: R/desc_data.R

desc_dataR Documentation

A desc_data Function

Description

DESCRIPCIO DE LA FUNCIO

Usage

desc_data(
  data,
  format = "html",
  maxlev = 7,
  maxNA = 80,
  size = 13,
  caption = NULL,
  remove_cols = TRUE,
  df = FALSE
)

Arguments

data

data frame, list or environment (or object coercible by 'as.data.frame' to a data frame) containing the variables in the model. If they are not found in 'data', the variables are taken from 'environment(formula)'.

format

a character string; possible values are latex, html, markdown, pandoc, and rst; this will be automatically determined if the function is called within knitr; it can also be set in the global option knitr.table.format; if format is a function, it must return a character string

maxlev

an integer indicating the maximum number of levels of variable. Default value is 7.

maxNA

an integer indicating the maximum number of missing data.

size

A numeric input for table font size

caption

Character vector containing the table's caption or title. Default value is a summary.

remove_cols

logical value. Removes all columns from a data that are composed entirely of NA values.

df

logical value. return data.frame

Examples

# desc_data(data = iris, format = "html")
# desc_data(airquality, format = "html", maxNA = 20)

uebvhir/anaStatsUEB documentation built on May 6, 2023, 3:46 a.m.