rosettaDescriptiveCIs: Descriptives with confidence intervals

descriptiveCIsR Documentation

Descriptives with confidence intervals

Description

Descriptives with confidence intervals

Usage

descriptiveCIs(
  data,
  items = NULL,
  itemLabels = NULL,
  conf.level = 0.95,
  digits = 2
)

## S3 method for class 'rosettaDescriptiveCIs'
print(x, digits = attr(x, "digits"), forceKnitrOutput = FALSE, ...)

Arguments

data

The data frame holding the data, or a vector.

items

If supplying a data frame as data, the names of the columns to process.

itemLabels

Optionally, labels to use for the items (optionally, named, with the names corresponding to the items; otherwise, the order of the labels has to match the order of the items)

conf.level

The confidence level of the confidence intervals.

digits

The number of digits to round the output to.

x

The object to print (i.e. the object returned by descriptiveCIs).

forceKnitrOutput

Whether to force knitr output even when not knitting.

...

Any additional arguments are passed on to knitr::kable() or to base::print().

Value

A data frame with class rosettaDescriptiveCIs prepended to allow printing neatly while knitting to Markdown.

Examples

descriptiveCIs(mtcars);

rosetta documentation built on March 7, 2023, 7:40 p.m.