Re: [R] IP-Address

2009-06-09 Thread edwin7
Hi Peter, I hope you could help. I am stuck with this. The last problem I have is: I have table like: id rank color status ip 138 29746 yellow yes 162.131.58.1 138 29746 yellow yes 162.131.58.2 138 29746 yellow yes 162.131.58.3 138 29746 yellow yes 162.131.58.4 138 29746 yellow yes 162.131.

Re: [R] IP-Address

2009-06-04 Thread edwin7
Hi, Unfortunately, they can't handle NA. Any suggestion? Some row for Ip don't have ip address. This cause an error/ wrong result. Eddie > library(gsubfn) > library(gtools) > library(rbenchmark) > > n <- 1 > df <- data.frame( > a = rnorm(n), > b = rnorm(n), > c = rnorm(n), > ip = r