[R] number in R

Duncan Murdoch murdoch at stats.uwo.ca
Tue Aug 18 13:56:14 CEST 2009


On 17/08/2009 10:49 AM, 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???

Those are the same numbers, so I think you're asking how to change the 
default display of data frames.  You can use a large positive number in 
options("scipen") to do this, e.g. options(scipen=10).

Duncan Murdoch

> 
> someone has an idea please?
> Thank you very much for your help!!!
> 
> Inchallah Yarab
> 
> 
>       
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list