Generic converter. Methods are provided for sda_fit and
data.frame. Use sda_anchor for direct construction.
Usage
as_sda_anchor(x, ...)
# S3 method for class 'sda_fit'
as_sda_anchor(x, ...)
# S3 method for class 'data.frame'
as_sda_anchor(
x,
selected_attributes,
candidate_universe = NULL,
group_levels = NULL,
canon_notes = c("Explicit / manual anchor - user-declared stage table",
"Not derived from sda_fit", "This anchor is for future SORT / staged CTA workflows",
"SORT is not implemented", "GORT is not implemented"),
...
)Arguments
- x
A data frame with at least columns
stage_id(integer) andattribute(character). Represents an explicit / manually-declared stage table.- ...
Additional arguments passed to methods.
- selected_attributes
Character vector of attribute names in stage order. Must match
x$attributeentries.- candidate_universe
Character vector of all candidate attributes, or
NULL(defaults toselected_attributes).- group_levels
Integer vector, or
NULL.- canon_notes
Character vector describing the source.