We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tm_t_crosstable
Run an app with normal data and select the same variable for both row values and column values.
library(teal) data <- teal_data() data <- within(data, { CO2 <- CO2 }) datanames(data) <- "CO2"
library(teal.modules.general) library(teal.widgets) app <- init( data = data, modules = modules( tm_t_crosstable( label = "Cross Table", x = data_extract_spec( dataname = "CO2", select = select_spec( label = "Select variable:", choices = variable_choices(data[["CO2"]], c("Plant", "Type", "Treatment")), selected = "Plant", multiple = TRUE, ordered = TRUE, fixed = FALSE ) ), y = data_extract_spec( dataname = "CO2", select = select_spec( label = "Select variable:", choices = variable_choices(data[["CO2"]], c("Plant", "Type", "Treatment")), selected = "Treatment", multiple = FALSE, fixed = FALSE ) ), basic_table_args = basic_table_args( subtitles = "Table generated by Crosstable Module" ) ) ) ) runApp(app, launch.browser = TRUE)
Now run the app with data that has a primary key added:
data <- teal_data() data <- within(data, { CO2 <- CO2 CO2[["primary_key"]] <- seq_len(nrow(CO2)) }) datanames(data) <- "CO2" join_keys(data) <- join_keys(join_key("CO2", "CO2", "primary_key"))
The app now works as intended.
The text was updated successfully, but these errors were encountered:
also check if other modules have this error
Sorry, something went wrong.
Already have. Note that all modules have general and CDISC data examples now, I logged all erors like this during #651
No branches or pull requests
Run an app with normal data and select the same variable for both row values and column values.
normal data
app
error
Now run the app with data that has a primary key added:
The app now works as intended.
The text was updated successfully, but these errors were encountered: