View source: R/association_2fac.R
association_2fac | R Documentation |
Carry out a chi-squared contingency table test for two vectors and export it in a tidy
format with broom
. It is also calculated the Cramer V.
association_2fac(x, y, ..., name_x = NULL, name_y = NULL)
x |
A vector. |
y |
A vector. |
... |
Optional. Parameters of |
name_x |
Optional. Name of the x variable (character). |
name_y |
Optional. Name of the y variable (character). |
A data.frame with the results.
association_2fac( as.factor(mtcars$cyl), as.factor(mtcars$am) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.