Tidy test of correlation
Carry out a correlation test for two vectors and export it in a tidy
format with broom
.
Uso
association_2num_cor(x, y, ..., name_x = NULL, name_y = NULL)
Argumentos
- x
A vector.
- y
A vector.
- ...
Optional. Parameters of prop.test
function.
- name_x
Optional. Name of the x variable (character).
- name_y
Optional. Name of the y variable (character).
Valor
A data.frame with the results.
Ejemplos
association_2num_cor(mtcars$mpg, mtcars$disp)
#> Error in relocate(., dfreedom, .after = statistic): no se pudo encontrar la función "relocate"