Create an object that specifies the desired format for a data frame. This specification object does not contain any data itself, only the rules for harmonization.
See also
Other specification functions:
specify_fct()
Examples
specify_df(
response = specify_fct(levels = c("Yes", "No", "Maybe")),
outcome = specify_fct(levels = c("Positive", "Negative"))
)
#> $response
#> $levels
#> [1] "Yes" "No" "Maybe"
#>
#> attr(,"class")
#> [1] "hrmn_spec_fct" "hrmn_spec" "list"
#>
#> $outcome
#> $levels
#> [1] "Positive" "Negative"
#>
#> attr(,"class")
#> [1] "hrmn_spec_fct" "hrmn_spec" "list"
#>
#> attr(,"class")
#> [1] "hrmn_spec_df" "hrmn_spec" "list"