Create a simple correlation table
Value
An object of class flextable. If in an interactive session, the table will be viewable immediately.
Examples
# Not removing NAs is not recommended
tbl_corr(airquality, Ozone~Solar.R, na_rm = FALSE)
#> Missing values *not* automatically removed from calculation.
#> You may get NA values in your output.
#> This message is displayed once per session.
Correlation of Ozone vs. Solar.R Ozone n
Ozone
missing
Solar.R n
Solar.R
missing
Observations
Used
Correlation
153
37
153
7
153
NA
tbl_corr(airquality, Ozone~Solar.R)
Correlation of Ozone vs. Solar.R Ozone n
Ozone
missing
Solar.R n
Solar.R
missing
Observations
Used
Correlation
153
37
153
7
111
0.348