Learn R Programming

rosetta (version 0.3.12)

descriptiveCIs: 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 rosettaDescriptiveCIs print(x, digits = attr(x, "digits"), forceKnitrOutput = FALSE, ...)

Value

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

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().

Examples

Run this code
descriptiveCIs(mtcars);

Run the code above in your browser using DataLab