Re: [R] Locating inefficient code

2013-09-27 Thread arun
.100.2:80     10.5.1.3:3189   TIME_WAIT #5   tcp  0  0    172.20.100.2:80 10.5.5.7:3445   TIME_WAIT #6   tcp  0  0    172.20.100.2:80    10.3.29.3:2671   TIME_WAIT A.K. - Original Message - From: "mohan.radhakrish...@polarisft.com" To: r-help@r-project.org Cc: S

Re: [R] Locating inefficient code

2013-09-27 Thread jim holtman
Is this what you want? Please use dput when providing data. Should be faster using regular expressions: > x <- read.table(text = "Proto Recv-Q Send-Q Local-Address > Foreign-Address State + tcp00172.20.100.2:60255 172.20.100.3:8209

[R] Locating inefficient code

2013-09-27 Thread mohan . radhakrishnan
Hi, I have been using R for a few months and I have this working code. Don't seen any problem but this takes a long time. So if I have about 3 rows it takes a few minutes. If I have 10 it does not seem to complete. Original Data: Proto Recv-Q Send-Q Local-Address