1 package
% Thu Sep 12 22:42:58 2013
\begin{table}[ht]
\centering
\begin{tabular}{rlll}
\hline
& Fruits & Adam & steve \\
\hline
1 & apples & 17.10$\pm$2.22 & 3.20$\pm$1.10 \\
2 & oranges & 3.10$\pm$2.55 & 18.10$\pm$3.20 \\
\hline
\end{tabular}
\end{ta
ncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mac...@northnet.com.au
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Sachinthaka Abeywardana
Sent: Friday, 13 September 2013
dana
Cc: R help
Sent: Thursday, September 12, 2013 9:29 PM
Subject: Re: [R] xtable use plus minus
Hi,
Try:
a_table[grep("\\d+",a_table)]<- paste0(a_table[grep("\\d+",a_table)],"$\\pm$")
library(xtable)
print(xtable(a_table),sanitize.text.function=identity)
% la
& 18.1$\pm$ & 3.2$\pm$ \\
\hline
\end{tabular}
\end{table}
A.K.
- Original Message -
From: Sachinthaka Abeywardana
To: "r-help@r-project.org"
Cc:
Sent: Thursday, September 12, 2013 8:46 PM
Subject: [R] xtable use plus minus
I am using a similar dataset to the
I am using a similar dataset to the following:
a= c("Fruits", "Adam","errorA", "steve", "errorS",
"apples", 17.1,2.22, 3.2,1.1,
"oranges", 3.1,2.55, 18.1,3.2 )
a_table=data.matrix(t(matrix(a,nrow=5)))
I would like to plus minus every second column starting from errorA (using
xtable/ hmi
5 matches
Mail list logo