cell_n: Create an cell_n (S3) object of the given statistic

View source: R/compile-cell.R

cell_nR Documentation

Create an cell_n (S3) object of the given statistic

Description

A cell_n object contains an n value. Essentially, this is just a helper that appends the cell_n class to the given object and makes sure it's a cell S3 object as well.

Usage

cell_n(n, class = NULL, hdr = FALSE, possible = NULL, ...)

Arguments

n

The numerical value

class

character; An optional field for additional S3 classes (e.g. could be used in html rendering for CSS)

hdr

logical; Construct an n value for a header (defaults to FALSE)

possible

numerical; The total N that was possible

...

optional extra information to attach

Value

A cell_n object.

Examples

cell_n(20)

tangram documentation built on Feb. 16, 2023, 5:59 p.m.