Re: [R] insert a dot to the numbers

2009-12-21 Thread rusers.sh
Thanks a lot. 2009/12/20 Henrique Dallazuanna www...@gmail.com Try this also: sapply(s, function(x)format(x, big.interval = nchar(x) - 3, big.mark = .)) On Sun, Dec 20, 2009 at 7:50 PM, rusers.sh rusers...@gmail.com wrote: Hi, Anybody can give me some hints on the following problem?

[R] insert a dot to the numbers

2009-12-20 Thread rusers.sh
Hi, Anybody can give me some hints on the following problem? s-c(110,112321) I want to insert a dot . after the third number and get the following results. 110. 112.321 Thanks a lot. -- - Jane Chang Queen's [[alternative HTML version deleted]]

Re: [R] insert a dot to the numbers

2009-12-20 Thread Marc Schwartz
On Dec 20, 2009, at 3:50 PM, rusers.sh wrote: Hi, Anybody can give me some hints on the following problem? s-c(110,112321) I want to insert a dot . after the third number and get the following results. 110. 112.321 Thanks a lot. s - c(110, 112321) s / (10 ^ (nchar(s) -

Re: [R] insert a dot to the numbers

2009-12-20 Thread Ted Harding
On 20-Dec-09 21:50:58, rusers.sh wrote: Hi, Anybody can give me some hints on the following problem? s-c(110,112321) I want to insert a dot . after the third number and get the following results. 110. 112.321 Thanks a lot. - Jane Chang Queen's

Re: [R] insert a dot to the numbers

2009-12-20 Thread Henrique Dallazuanna
Try this also: sapply(s, function(x)format(x, big.interval = nchar(x) - 3, big.mark = .)) On Sun, Dec 20, 2009 at 7:50 PM, rusers.sh rusers...@gmail.com wrote: Hi,  Anybody can give me some hints on the following problem? s-c(110,112321)  I want to insert a dot . after the third number