Hi Felipe,
The problem has nothing to do with Sweave or \Sexpr. The problem is
that by the time you call \Sexpr report is a matrix, and you cannot
access the column names of a matrix with names(). You need to use
colnames() or convert the matrix to a data.frame.
Perhaps a true useR can write R
Thanks Izta:
I see your point, then I should extract the column names when the
dataset is first read because is a dataframe:
report - structure(list(Date = c(3/12/2010, 3/13/2010, 3/14/2010,
3/15/2010), Run1 = c(33 (119 ? 119), n (0 ? 0), 893 (110 ? 146),
140 (111 ? 150)), Run2 = c(33 (71 ?
Hi Felipe,
See in line below.
On Tue, Jul 13, 2010 at 11:04 AM, Felipe Carrillo
mazatlanmex...@yahoo.com wrote:
Thanks Izta:
I see your point, then I should extract the column names when the
dataset is first read because is a dataframe:
That might work, but it's definitely not how I would do
Hi:
Since I work with a few different fish runs my column headers change everytime
I start a new Year. I have been using \Sexpr{} for my row and columns and now
I am trying to use with my report column headers. \Sexpr{1,1} is row 1 column 1,
what can I use for headers? I tried \Sexpr{0,1} but
On 12/07/2010 5:10 PM, Felipe Carrillo wrote:
Hi:
Since I work with a few different fish runs my column headers change everytime
I start a new Year. I have been using \Sexpr{} for my row and columns and now
I am trying to use with my report column headers. \Sexpr{1,1} is row 1 column 1,
what
Thanks for the quick reply Duncan.
I don't think I have explained myself well, I have a dataset named report and
my column headers are run1,run2,run3,run4 and so on.
I know how to access the data below those columns with \Sexpr{report[1,1]}
\Sexpr{report[1,2]} and so on, but I can't access my
On Jul 12, 2010, at 5:45 PM, Felipe Carrillo wrote:
Thanks for the quick reply Duncan.
I don't think I have explained myself well, I have a dataset named
report and
my column headers are run1,run2,run3,run4 and so on.
I know how to access the data below those columns with
I had tried that earlier and didn't work either, I probably have \Sexpr in the
wrong place. See example:
Column one header gets blank:
\documentclass[11pt]{article}
\usepackage{longtable,verbatim,ctable}
\usepackage{longtable,pdflscape}
\usepackage{fmtcount,hyperref}
\usepackage{fullpage}
8 matches
Mail list logo