View source: R/check_and_fix_contin_table.R
check_and_fix_contin_table | R Documentation |
I
by J
contingency tableVerify and correct the input I
by J
contingency
table to ensure it is properly formatted as a data matrix with row
(adverse event) and column (drug) names.
check_and_fix_contin_table(contin_table)
contin_table |
A data matrix or a data frame of an |
A data matrix of an I
by J
contingency table with row
and column names.
# Create a 6 by 4 data matrix
set.seed(42)
dat_mat <- matrix(rpois(6 * 4, 20), nrow = 6)
dat_mat
# Check the format of the data matrix and assign row and column names
contin_table <- check_and_fix_contin_table(dat_mat)
contin_table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.