funExtract functionHere is a markdown document. Similar concepts should apply to a Sweave document.
I assume that we don't need to see the funExtract function. Also, note here that I've added a [-1] to drop the first line where the section heading is found.
lm(formula, data, subset, weights, na.action,
method = "qr", model = TRUE, x = FALSE, y = FALSE, qr = TRUE,
singular.ok = TRUE, contrasts = NULL, offset, ...)
Let's print the “Description” and “References”:
lmis used to fit linear models. It can be used to carry out regression, single stratum analysis of variance and analysis of covariance (althoughaovmay provide a more convenient interface for these).
Chambers, J. M. (1992) Linear models. Chapter 4 of Statistical Models in S eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole.
Wilkinson, G. N. and Rogers, C. E. (1973) Symbolic descriptions of factorial models for analysis of variance. Applied Statistics, 22, 392–9.
Here is a function that has many entries in “usage”:
var(x, y = NULL, na.rm = FALSE, use)
cov(x, y = NULL, use = "everything",
method = c("pearson", "kendall", "spearman"))
cor(x, y = NULL, use = "everything",
method = c("pearson", "kendall", "spearman"))
cov2cor(V)