[R] socket server, textConnection and readLines

2008-12-16 Thread Krishna Dagli
Hello; This is bit long email but hope someone can guide me. I have questions regarding socket, readLines and textConnection. I am not sure if my code is efficient (due to textConnection) and how to handle client disconnect and restart of the socket server in R. I have a huge(3.5+G) text file on

Re: [R] R newbie: how to replace string/regular expression

2008-11-03 Thread Krishna Dagli
On Mon, Nov 3, 2008 at 3:36 AM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > I did provide a link to that solution already but also wanted to > show how to do it in the same way that the code in the question > was written. Thanks for pointing me in right direction, both solutions are wonderful.

[R] R newbie: how to replace string/regular expression

2008-11-02 Thread Krishna Dagli/Krushna Dagli
Hello; I am a R newbie and would like to know correct and efficient method for doing string replacement. I have a large data set, where I want to replace character "M", "b", and "K" (currency in Million, Billion and K) to millions. That is 209.7B with (209.7 * 10e6) and 100.00K with (100.00 *1/