Will this do it for you: > x <- list(1,2,3) > x[[1]] [1] 1 > cat(x[[1]], '\n') 1 >
On Thu, May 24, 2012 at 5:50 AM, Manish Gupta <mandecent.gu...@gmail.com> wrote: > HI, > > I am printing list element. > > print(desc[[2]]) > [1] XXXXXXXXXXXXXXXXXXXxx > > I want to remove [1] > Output should be > XXXXXXXXXXXXXXXXXXXxx > > How can i implement it? > > Thanks > > > -- > View this message in context: > http://r.789695.n4.nabble.com/How-to-avoid-numbering-while-printing-list-element-tp4631180.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. -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. ______________________________________________ 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.