| lm_pval | R Documentation | 
extract single pvalue from lm model. shortcut for coef(summary(m))
lm_pval(m, coef_row = 2, pr_name = "Pr(>|t|)")
| m | lm model | 
| coef_row | what row to extract pvalue from (def=2, likely slope) | 
| pr_name | column name for pvalue. default="Pr(>|t|)" | 
 lm_pval(lm(mpg~cyl, mtcars)) # 6.112687e-10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.