cor_report.Rd
Report of Spearman correlation with p-value
cor_report(data, x, y)
A data.frame
name of x
variable
name of y
variable
A character of correlation and p-value
# Summarize data by ID
sum_data <- data_501 |>
dplyr::group_by(ID) |>
dplyr::summarise_all(dplyr::first)
# Spearman correlation with p-value
cor_report(sum_data, x = "WT", y = "AGE")
#> [1] "0.207 (p:0.113)"