Skip to content
Prev 333424 / 398506 Next

Parametrizing heading in tables package

On 20/11/2013 9:17 AM, Jean-Louis Abitbol wrote:
I would use substitute() on the whole formula.  For example,

a <- "New heading"
x <- rnorm(100)

tabular( substitute( Heading( head )*x ~ mean, list(head = a) ) )

Duncan Murdoch