Re: [R] changing format of a float value to another

2008-04-24 Thread jim holtman
?sprintf > x <- "1.085714e-01" > sprintf("%.4f", as.numeric(x)) [1] "0.1086" > On Thu, Apr 24, 2008 at 6:28 AM, orkun <[EMAIL PROTECTED]> wrote: > hello > > How can I change a vector's float value from ("1.085714e-01") format to > a simpler format (like 0.1xxx). > > regards > > > -- > Ahmet Tem

Re: [R] changing format of a float value to another

2008-04-24 Thread Henrique Dallazuanna
Try this: x <- "1.085714e-01" format(as.numeric(x), scientific = F) On Thu, Apr 24, 2008 at 7:28 AM, orkun <[EMAIL PROTECTED]> wrote: > hello > > How can I change a vector's float value from ("1.085714e-01") format to > a simpler format (like 0.1xxx). > > regards > > > -- > Ahmet Temiz > Jeo.

[R] changing format of a float value to another

2008-04-24 Thread orkun
hello How can I change a vector's float value from ("1.085714e-01") format to a simpler format (like 0.1xxx). regards -- Ahmet Temiz Jeo. Müh. Afet İşleri Gen. Md.lüğü Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and