diff --git a/vignettes/datasummary.qmd b/vignettes/datasummary.qmd index 5484cf3a..dfdabe74 100644 --- a/vignettes/datasummary.qmd +++ b/vignettes/datasummary.qmd @@ -187,7 +187,7 @@ The `datasummary_correlation` function has a `methods` argument. The default val library(correlation) fun <- function(x) { - out <- correlation(mtcars) |> + out <- correlation(x) |> summary() |> format(2) |> as.matrix()