Description Usage Arguments Value See Also Examples
View source: R/print_correlation.r
The function uses the correlation
function from the correlation
package to prepare correlation matrices. The options show
and html
allow to adapt the output form.
1 | print_correlation(data, show, html)
|
data |
|
show |
value |
html |
value |
|
The correlation matrix prints to the console as plain text |
|
The correlation matrix prints to the console as html code |
|
The functions returns a ctable of correlation coefficients and p-values - see |
1 2 3 4 5 6 | data <- supportR::create_data()
print_correlation(data = data, show = TRUE, html = FALSE)
print_correlation(data = data, show = TRUE, html = TRUE)
print_correlation(data = data, show = FALSE, html = TRUE)
# html = TRUE overrules show = FALSE
print_correlation(data = data, show = FALSE, html = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.