Re: [R] How to select the column header with \Sexpr{}

2010-07-13 Thread Ista Zahn
"ID_Date", "Run1", "Run2", >> > "Run3", "Run4", "Run5"), row.names = c(NA, 4L), class = "data.frame") >> > require(stringr) >> > report <- t(apply(report, 1, function(x) {str_replace(x, "\\?&quo

Re: [R] How to select the column header with \Sexpr{}

2010-07-13 Thread Felipe Carrillo
(34 ? 66)"  $ Run4   : chr  "0 ( ? )" "n (0 ? 0)" "0 ( ? )" "0 ( ? )"  $ Run5   : chr  "0 ( ? )" "n (0 ? 0)" "0 ( ? )" "0 ( ? )"  names(report)[1]  # I can extract the column name here [1] "Date" But after

Re: [R] How to select the column header with \Sexpr{}

2010-07-13 Thread Ista Zahn
? )&0 ( ? > )\tabularnewline > 2&3/13/2010&n (0 ? 0)&n (0 ? 0)&n (0 ? 0)&n (0 ? 0)&n (0 ? 0)\tabularnewline > 3&3/14/2010&893 (110 ? 146)&337 (67 ? 74)&10,602 (32 ? 52)&0 ( ? )&0 ( ? > )\tabularnewline > 4&3/15/2010&140 (111

Re: [R] How to select the column header with \Sexpr{}

2010-07-12 Thread Felipe Carrillo
xpr{report[1,1]} & > > &\Sexpr{report[1,2]} and so on, but I can't access my column headers > > with \Sexpr{} because I can't find the way to reference run1,run2,run3 and >run4. > > Sorry if I am not explain myself really well. > > Wouldn't this j

Re: [R] How to select the column header with \Sexpr{}

2010-07-12 Thread David Winsemius
or perhaps you want specific items in that vector? Sexpr{names(report)[1]}, Sexpr{names(report)[2]}, etc -- David. - Original Message From: Duncan Murdoch To: Felipe Carrillo Cc: r-h...@stat.math.ethz.ch Sent: Mon, July 12, 2010 2:18:15 PM Subject: Re: [R] How to select the

Re: [R] How to select the column header with \Sexpr{}

2010-07-12 Thread Felipe Carrillo
z.ch > Sent: Mon, July 12, 2010 2:18:15 PM > Subject: Re: [R] How to select the column header with \Sexpr{} > > 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

Re: [R] How to select the column header with \Sexpr{}

2010-07-12 Thread Duncan Murdoch
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 can

[R] How to select the column header with \Sexpr{}

2010-07-12 Thread Felipe Carrillo
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 swea