On Mon, Jun 23, 2008 at 10:15:53PM +0900, Gundala Viswanath wrote: > I've tried > > > write(as.character(myvec), "output.txt", sep="\n") > > and > > > writeLines(as.character(myvec), "output.txt", sep="\n") > > Both yielding same result. > > >> 1 > >> 1 > >> 1 > >> 1 > >> 1 > >> 6241 > > Is there any other possible explanation, why it > still went wrong?
Hm - weird. I guess it's time to find out where this piece of data came from and what exacty it contains. As Duncan suggested, show us the output of str(myvec) and maybe say a few words about the origin of the data (how was it read into R, how was it modified, ...). BTW: what version of R are you running? And on what platform? Maybe it's a bug which has long been fixed and we simply can't reproduce it on the latest release? cu Philipp -- Dr. Philipp Pagel Lehrstuhl für Genomorientierte Bioinformatik Technische Universität München Wissenschaftszentrum Weihenstephan 85350 Freising, Germany http://mips.gsf.de/staff/pagel ______________________________________________ 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.