Recovers the sframe instrument from a validation diagnostic. This is the
migration path for code that used the strict = TRUE return of
validate_sframe() as an instrument after its class has changed.
Arguments
- x
An sframe_validation object or an
sframe.- ...
Passed to methods.
See also
validate_sframe(), sframe_validation
Other Design functions:
launch_builder(),
read_sframe(),
sframe_attention_check(),
sframe_branch(),
sframe_choice_set(),
sframe_conjoint_design(),
sframe_get_study(),
sframe_instrument(),
sframe_item(),
sframe_sampling_methods(),
sframe_scale(),
sframe_validation,
validate_sframe(),
write_sframe()
Examples
item <- sframe_item("q1", "How satisfied are you?", type = "text")
instr <- sframe_instrument("Demo", components = list(item))
validated <- as_sframe(validate_sframe(instr, strict = TRUE))
isTRUE(sframe_meta(validated)$validated)