J Michael Dean mdean77 at comcast.net writes:
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
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 shows
J Michael Dean wrote:
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
Thanks, Frank. I am an old newbie, so your advice was not
straightforward to me, but it nudged me to look at the structure of
the contents object. I did solve the problem by passing the contents
data frame in the contents object. Using the example dfr from Dieter,
g - contents(dfr)
g
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
5 matches
Mail list logo