Opens a Shiny app in your browser that guides you through a visual decision tree to describe the arrangement of your table, then generates the corresponding schema R code.

schema_builder(input = NULL)

Arguments

input

[data.frame(1)]
Optionally, pass in your table directly. If NULL (default), the app shows a file upload widget.

Value

Invisibly returns the evaluated schema object when the user clicks Finish, or NULL if the app is closed without finishing.

Details

Requires the shiny and DT packages. Install them with install.packages(c("shiny", "DT")).

Examples

if (FALSE) { # \dontrun{
schema_builder()
schema_builder(input = tabs2shift$clusters_horizontal)
} # }