Hi,

I am using follosing code and getting the below output. 
<<echo=FALSE>>=
infile<-read.table("/home/manish/Desktop/test.txt",sep="\t",header=TRUE)
Col3 <- unique(infile[,3]) 
LCol3 <- length(Col3)
for (i in 1:LCol3) {
print(paste("Disease Risk:", Col3[i]),row.names=FALSE,
col.names=FALSE,quote=FALSE)
print(infile[infile[,3]==Col3[i],-3], row.names=FALSE,
col.names=FALSE,quote=FALSE, width="10",  justify = c("right", "right",
"centre")) 
}
@
http://r.789695.n4.nabble.com/file/n4484027/Screenshot.png 

Still [1] is written over there. How to avoid it? And i need to add tab  and
new line in between records. How can i implement it? Thanks in advance. 

--
View this message in context: 
http://r.789695.n4.nabble.com/Output-formatting-in-Latex-and-R-tp4483631p4484027.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to