[R] number in R

Philipp Pagel p.pagel at wzw.tum.de
Tue Aug 18 15:17:18 CEST 2009

On Mon, Aug 17, 2009 at 02:49:53PM +0000, Inchallah Yarab wrote:
> Hi,
> i export data from an csv file like this :
> ?Data <- read.csv2("c:/Art.csv",sep=",") # import data into R
> > Data <- Data [1:5,1:5]# extracting the first 5 rows and columns
> > Data
> ? Policy.Number AXA.Entity Country LoB ccy.data
> 1???????? 6e+13??????? BNL???? BNL?? P????? EUR
> 2???????? 6e+13??????? USA???? BNL?? P????? EUR
> 3???????? 6e+13???????? UK???? BNL?? E????? EUR
> 4???????? 6e+13??????? USA???? BNL?? P????? EUR
> 5???????? 6e+13????????? I???? BNL?? E????? EUR
> and i want to have in the first column the number 60000000000000 without using e +13???

I am not sure if this applies to your example, but to me it looks a
little like column AXA.Entity is not really a normal number (i.e.
meant to ube used in computations) but some kind of ID. In that case,
it may be better to enforce a character (or factor) data type for this
column when you first read the date (using the colClasses argument to


Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany

More information about the R-help mailing list