powered by
Check that outcome column exists. Pick outcome column if not specified.
check_outcome_column( dataset, outcome_colname, check_values = TRUE, show_message = TRUE )
outcome colname
Data frame with an outcome variable and other columns as features.
Column name as a string of the outcome variable (default NULL; the first column will be chosen automatically).
NULL
whether to check the outcome values or just get the column (default:TRUE)
whether to show which column is being used as the output column (default: TRUE)
Kelly Sovacool, sovacool@umich.edu
if (FALSE) { check_outcome_column(otu_small, NULL) check_outcome_column(otu_small, "dx") }
Run the code above in your browser using DataLab