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

SampleCat(x)

is.SampleCat(x)

# S4 method for SampleCat
predx_to_json(x)

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

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

Details

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

Examples

x <- SampleCat(sample(letters, size = 10)) x
#> An object of class "SampleCat" #> Slot "predx": #> [1] "m" "w" "l" "e" "f" "o" "u" "d" "v" "i" #>