Re: [R] Hmisc labels and captions in latex.list()

2008-12-30 Thread J Michael Dean
male" "male" $ longLabels: NULL - attr(*, "class")= chr "contents.data.frame" > g$contents Levels Storage x 0 double y 2 integer latex(g$contents, caption='hello', label='mylabel',file='') This may be useful to others. But sounds lik

Re: [R] Hmisc labels and captions in latex.list()

2008-12-30 Thread J Michael Dean
Thanks, Dieter, for your response shown below. library(Hmisc) dfr <- data.frame(x=rnorm(20),y=sample(c('male','female'),20,TRUE)) cnt <- contents(dfr) latex(cnt,label="tab:mytab",caption="This is a caption") The problem is that I only want to display cnt[1] - I am simply making a table that s

[R] Hmisc labels and captions in latex.list()

2008-12-29 Thread J Michael Dean
I am trying to feed a list to latex to use with SWeave, and the list comes from contents(). Since it is a list, a caption and label are generated by latex.list - these are not overridden by setting the parameters (such as caption='myCaption', label='myLabel'). I must clearly be missing som