PolyGeniusFrame
PolyGeniusFrame class
Description
A lightweight table wrapper used by PolyGenius to represent fetched observation-side (“obs”) or model-side (“mod”) tabular data while preserving grouping metadata.
PolyGeniusFrame remains a tibble/data-frame subclass so it can be passed directly to modeling functions such as stats::lm(), stats::glm(), and survival::coxph() through their data = argument.
Role metadata can be inspected with roles(). Roles return column names, not data vectors.
Usage
PolyGeniusFrame(fields, side = c("obs", "mod"), groups = list(), source = NULL)
## S3 method for class 'PolyGeniusFrame'
x[i, j, drop = FALSE]
print.PolyGeniusFrame(x, ...)
Arguments
fields
|
Named list of column vectors. |
side
|
Character scalar, one of |
groups
|
Optional named list mapping group names to column names. |
source
|
Optional source label recorded in frame metadata. |
x
|
A |
i
|
Row indices. |
j
|
Column indices. |
drop
|
Logical; passed through to the base subset method. |
…
|
Passed to the underlying printer. |
Value
A tibble with S3 class PolyGeniusFrame.