[R] how to set the number format to pure numeric?
Hello, I want to export a numeric matrix in pure numeric format, i.e. I want 0.0001 to appear as 0.0001. But it seems the default setting for write.table is scientific notation, i.e. it will appear as 1e-04. how to set the number format to pure numeric? Thank you very much for your help. cheers, lichi shi __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] how to set the number format to pure numeric?
On Tue, 24 Aug 2004 [EMAIL PROTECTED] wrote: I want to export a numeric matrix in pure numeric format, i.e. I want 0.0001 to appear as 0.0001. But it seems the default setting for write.table is scientific notation, i.e. it will appear as 1e-04. how to set the number format to pure numeric? Thank you very much for your help. It's not the default, BTW. Try 0.002, say. See ?options and look at `scipen' to alter the rules. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] how to set the number format to pure numeric?
lichi shi [EMAIL PROTECTED] wrote: I want to export a numeric matrix in pure numeric format, i.e. I want 0.0001 to appear as 0.0001. But it seems the default setting for write.table is scientific notation, i.e. it will appear as 1e-04. how to set the number format to pure numeric? Try: R options(scipen=99) which sets a very high SCIentific notation PENalty. -- -- David Brahm ([EMAIL PROTECTED]) __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] how to set the number format to pure numeric? was SOLVED
Thank you for your kind help. I am done now. regards, lichi __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html