rtinner: Default tabulation

simple_analysisR Documentation

Default tabulation

Description

This function is used when analyze() is invoked.

Usage

simple_analysis(x, ...)

## S4 method for signature 'numeric'
simple_analysis(x, ...)

## S4 method for signature 'logical'
simple_analysis(x, ...)

## S4 method for signature 'factor'
simple_analysis(x, ...)

## S4 method for signature 'ANY'
simple_analysis(x, ...)

Arguments

x

(vector)
the already split data being tabulated for a particular cell/set of cells.

...

additional parameters to pass on.

Details

This function has the following behavior given particular types of inputs:

numeric

calls mean() on x.

logical

calls sum() on x.

factor

calls length() on x.

The in_rows() function is called on the resulting value(s). All other classes of input currently lead to an error.

Value

A RowsVerticalSection object (or NULL). The details of this object should be considered an internal implementation detail.

Author(s)

Gabriel Becker and Adrian Waddell

Examples

simple_analysis(1:3)
simple_analysis(iris$Species)
simple_analysis(iris$Species == "setosa")


Roche/rtables documentation built on April 30, 2024, 11:18 p.m.