Hi, I have a data file whose values are scientific notations, for example: 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003, ... How to load such data into R? Thanks, -Luke
Just read them like any other numbers; e.g.:> x <- scan(sep=",")1: 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003 5: [hit ctrl-d] Read 4 items> x[1] 9164.254 6719.529 4883.449 3718.159 Andy> From: Luke Zhou > > Hi, > > I have a data file whose values are scientific notations, for example: > > 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003, ... > > How to load such data into R? > > Thanks, > > -Luke > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > >
It works. thanks! -Luke On 5/12/05, Liaw, Andy <andy_liaw at merck.com> wrote:> Just read them like any other numbers; e.g.: > > > x <- scan(sep=",") > 1: 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003 > 5: [hit ctrl-d] > Read 4 items > > x > [1] 9164.254 6719.529 4883.449 3718.159 > > Andy > > > From: Luke Zhou > > > > Hi, > > > > I have a data file whose values are scientific notations, for example: > > > > 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003, ... > > > > How to load such data into R? > > > > Thanks, > > > > -Luke > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > > http://www.R-project.org/posting-guide.html > > > > > > > > ------------------------------------------------------------------------------ > Notice: This e-mail message, together with any attachment...{{dropped}}
Reasonably Related Threads
- How to convert data to 'normal' if they are in the form of standard scientific notations?
- how to scientific notation numbers
- [Bug 2747] New: Different notations for the same IP-address result in multiple entries in known_hosts
- [Bug 1444] New: nftables-0.9.6 crashes on some set notations:
- [PATCH] nouveau: Switch perms from macros to octal notations, module params readable to everyone