SampleCat-class: SampleCat class: Samples from a distribution of categories or...

Description Usage Details Examples

Description

A predx class for samples from a distribution of categories or classifications specified as character strings.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
SampleCat(x)

is.SampleCat(x)

## S4 method for signature 'SampleCat'
predx_to_json(x)

## S4 method for signature 'SampleCat'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

## S4 method for signature 'SampleCat'
transform_predx(x, to_class, cat, ...)

Details

In JSON and CSV representations, the samples are named sample.

Examples

1
2
x <- SampleCat(sample(letters, size = 10))
x

cdcepi/predx documentation built on Dec. 29, 2019, 4:58 p.m.