Re: [R] How to convert data to 'normal' if they are in the form of standard scientific notations?

2012-08-07 Thread Petr PIKAL
Hi Dear Jean Thanks a lot for your help. The reason I did not provide producible code is that my work started with reading in some large csv files, e.g. the data is not created by myself. But the data is from the same data provider so I would expect to receive data in exactly same

Re: [R] How to convert data to 'normal' if they are in the form of standard scientific notations?

2012-08-07 Thread Tal Galili
Try: options(scipen = 9) Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)

Re: [R] How to convert data to 'normal' if they are in the form of standard scientific notations?

2012-08-07 Thread arun
Hi, This might also helps. a-c(2.0e+9,2.1e+9) is.numeric(a) #[1] TRUE  format(a,sci=FALSE) #[1] 20 21 A.K. - Original Message - From: Petr PIKAL petr.pi...@precheza.cz To: HJ YAN yhj...@googlemail.com Cc: r-help@r-project.org Sent: Tuesday, August 7, 2012 4:11 AM

Re: [R] How to convert data to 'normal' if they are in the form of standard scientific notations?

2012-08-07 Thread arun
Hi, Try these also:  a-c(2.0e+9,2.1e+9)  is.numeric(a) [1] TRUE formatC(a,format=fg) #[1] 20 21  formatC(a,format=f) #[1] 20. 21.  formatC(a,format=f,digits=0) #[1] 20 21 A.K. - Original Message - From: HJ YAN

[R] How to convert data to 'normal' if they are in the form of standard scientific notations?

2012-08-06 Thread HJ YAN
Dear R users I read two csv data files into R and called them Tem1 and Tem5. For the first column, data in Tem1 has 13 digits where in Tem5 there are 14 digits for each observation. Originally there are 'numerical' as can be seen in my code below. But how can I display/convert them using

Re: [R] How to convert data to 'normal' if they are in the form of standard scientific notations?

2012-08-06 Thread Jean V Adams
HJ, You don't provide any reproducible code, so I had to make up my own. dat - data.frame(a=letters[1:5], x=c(20110911001084, 20110911001084, 20110911001084, 20110911001084, 20110911001084), y=c(2.10004e+12, 2.10004e+12, 2.10004e+12, 2.10004e+12, 2.10004e+12)) In my example,

Re: [R] How to convert data to 'normal' if they are in the form of standard scientific notations?

2012-08-06 Thread HJ YAN
Dear Jean Thanks a lot for your help. The reason I did not provide producible code is that my work started with reading in some large csv files, e.g. the data is not created by myself. But the data is from the same data provider so I would expect to receive data in exactly same data format. I