[R] thousands separator in console output?

2009-11-11 Thread Patricio Cuarón
Hello, I'm beginning with R and I'm wondering if there's any way to display large values (e.g. 161651654167) using my system's thousands separator or scientific notation. Thanks! [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] thousands separator in console output?

2009-11-11 Thread Marc Schwartz
On Nov 11, 2009, at 3:52 PM, Patricio Cuarón wrote: Hello, I'm beginning with R and I'm wondering if there's any way to display large values (e.g. 161651654167) using my system's thousands separator or scientific notation. Thanks! To get scientific notation as a default for given large

[R] thousands separator

2009-07-21 Thread christophe dutang
Dear useRs, I was wondering how to deal with data where thousands separator is a space or a comma? with google, I thought I found the answer but the thread ( http://tolstoy.newcastle.edu.au/R/help/06/04/25524.html) just focuses on decimal separator. Is there any function to numbers written like

Re: [R] thousands separator

2009-07-21 Thread jim holtman
What I do is read the file in and then convert the various columns to numeric x - read.table(..., as.is=TRUE) col2cvt - c('V1', 'V3','V6') # columns for conversion for (i in col2cvt){ x[[i]] - as.numeric(gsub(,, , x[[i]])) } Replace ',' with ' ' for blanks. On Tue, Jul 21, 2009 at 3:34 PM,

Re: [R] thousands separator

2009-07-21 Thread Christophe Dutang
thanks, I test it on the following example 27 076 552 440.95,230 400.04,1 27 176 285 276.98,170 240.22,1 27 276 040 780.57,640 053.22,1 27 376 072 983.53,800 300.1,1 27 476 552 531.87,411 770.68,1 27 576 552 919.09,130 010.21,1 27 676 285 254.43,460 020.70,1 27 776 072 840.44,220 071.16,1 27 876