Rsq: Formats an R-squared figure for LaTeX

View source: R/Rsq.R

RsqR Documentation

Formats an R-squared figure for LaTeX

Description

Produces a math-mode formatted string for R-squared.

Usage

Rsq(R, fmt = "$R^2 = %6.4f$", adj = FALSE)

Arguments

R

The R-squared value

fmt

A formatting string for LaTeX

adj

If TRUE appends 'adjusted ' to the format string

Value

A string that will be correctly formatted by LaTeX

Author(s)

J Curran

See Also

Sweave

Examples

r = 0.99
Rsq(r)

dafs documentation built on April 11, 2022, 5:06 p.m.

Related to Rsq in dafs...