RE: [R] load data with scientific notations

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Fri 13 May 2005 - 04:07:18 EST


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@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
>
>
>



R-help@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 Received on Fri May 13 04:11:26 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:45 EST