Re: [R] How to make sub-headers in R

2015-05-15 Thread Liao, Hongsheng
age.addtorow $pos $pos[[1]] [1] 0 $command [1] "\\hline \n\\endfirsthead \n\\multicolumn{4}{l}{{Table \\thetable\\ Continued}} \n\\hline \n\\multicolumn{7}{r}{{Age}}\n\\hline \nInterval & 1 & 1 & 2 & 3 & 5 & 8\n\\hline \n\\endhead \n\\hline \n{\\footnotesize

Re: [R] How to make sub-headers in R

2015-05-15 Thread Boris Steipe
"\\endhead \n", > "\\hline \n", > "{\\footnotesize To continue} \n", > "\\endfoot \n", > "\\endlastfoot \n",sep="")) > > print(x.age.composition, file=output.age

Re: [R] How to make sub-headers in R

2015-05-15 Thread Liao, Hongsheng
e.after = c(-1, -1, 0, 1, nrow(x.age.composition), nrow(x.age.composition)), type="latex", append=FALSE, floating=FALSE, tabular.environment = "longtable", na.print = "", caption.placement = "top",

Re: [R] How to make sub-headers in R

2015-05-15 Thread Boris Steipe
cology > Old Dominion University > 757-683-4571 > > > > > > > > -----Original Message- > From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] > Sent: Friday, May 15, 2015 10:43 AM > To: Liao, Hongsheng; r-help@r-project.org > Subject: Re: [R] How t

Re: [R] How to make sub-headers in R

2015-05-15 Thread Liao, Hongsheng
original one and hope it is clear enough this time. Hongsheng (Hank) Liao, PhD. Lab Manager Center for Quantitative Fisheries Ecology Old Dominion University 757-683-4571 -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Friday, May 15, 2015 10:43 AM

Re: [R] How to make sub-headers in R

2015-05-15 Thread Boris Steipe
On May 15, 2015, at 9:55 AM, Liao, Hongsheng wrote: > I know how to make one-row header for a data frame using "colnames". Is > there any function to insert sub-header between the first row of the data and > the header? Thanks The elements of a data frame's columns are all of the same type.

Re: [R] How to make sub-headers in R

2015-05-15 Thread Bert Gunter
Hank: 1. No. 2. You would do well to go through an R tutorial -- the "Introduction to R" ships with R, but there are many more on the Web -- as you appear to be applying spreadsheet type concepts to R's data.frame data structure. While there certainly is a resemblance, conflating the two is a gr

Re: [R] How to make sub-headers in R

2015-05-15 Thread Jeff Newmiller
I think you are not interpreting what is happening correctly. Column names are labels used for purposes of referring to the data in your R code. That they might also be useful in presenting data in output is coincidental. The fact that many data input functions replace spaces in those labels wit

[R] How to make sub-headers in R

2015-05-15 Thread Liao, Hongsheng
I know how to make one-row header for a data frame using "colnames". Is there any function to insert sub-header between the first row of the data and the header? Thanks Hongsheng (Hank) Liao, PhD. Lab Manager Center for Quantitative Fisheries Ecology Old Dominion University 757-683-4571