dtable: create descriptive table

View source: R/dtable.R

dtable_listR Documentation

create descriptive table

Description

create descriptive table

Usage

dtable_list(data, types, ...)

dtable(
  data,
  type = NULL,
  guide = NULL,
  desc = NULL,
  desc.flist = NULL,
  comp = NULL,
  comp.flist = NULL,
  test = NULL,
  test.flist = NULL,
  glist = NULL,
  w = NULL,
  useNA = "ifany",
  ...
)

Arguments

data

a data.frame or such object

types

a vector of the types wanted

...

arguments passed

type

what kind of variables to you want to describe? 'real', 'bnry', 'cat', 'date' and 'surv' are available

guide

point to guide or get the default

desc

if, and how, to describe variables

desc.flist

list of describers, i.e. describing functions

comp

if, and how, to compare variables (requires a glist)

comp.flist

list of comparers, i.e. comparing functions

test

if to test variables

test.flist

list of testers, i.e. testing functions

glist

grouping list, if wanted. This can either be a list of logical vectors equal in length to the numbers of rows (i.e. logical indexes), in which case overlapping groups can be made, or the name of a variable in the data frame (in which case that variable will be removed from output) or just any variable in the global workspace

w

weights, if wanted

useNA

how to handle NA (requires that functions in flist has this argument)

Details

create a description of variables of a given type in your data. see the vignette for examples

Functions

  • dtable_list(): create a list of dtable, one for each type wanted


renlund/descripteur documentation built on Sept. 24, 2023, 7:07 p.m.