If I try to reshape a data frame into a long format with more than one
column it seems to mix up the column headings (or the columns, depending on
how you look at it). For example:
> d <-
data.frame(row=1:2,b.1=c("1b1","2b1"),b.2=c("1b2","2b2"),a.1=c("1a1","2a1"),a.2=c("1a2","2a2"))
> d
row b.1
When I generate a LaTeX table using xtable I have been setting column names
to strings with LaTeX code in order to get features like subscripts in the
column headings. I recently had to reinstall xtable and discovered that all
my LaTeX column headings were printing out in LaTeX code rather than wi
me sort of sense. If I enter a specific time zone such as
"GMT" it should assume all the times are from that time zone, even if the
place those times were recorded changes from standard time to daylight
savings time. For the last example above, if I enter an unknown time zone,
t
es correctly for this period by using chron,
multiplying by the number of seconds in a day and forcing the resulting
number to be a POSIXct, but this seems too involved and probably unreliable.
Thanks for any suggestions,
Ian Kennedy
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html