View source: R/format_strings.R
format_r2 | R Documentation |
This function takes an object produced by stats::lm() and returns the model R-squared as a string formaatted for markdown output
format_r2(mod, as.markdown = T)
mod |
A linear regression model or the R-squared from a regression model |
as.markdown |
optional, indicates whether the resulting string should be formatted for markdown. Default is TRUE |
Formatted string containing model R-squared
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.