Re: [R] Removing -Inf values from all the colums in a dataframe

2011-02-24 Thread Peter Ehlers
On 2011-02-23 19:27, Ramya wrote: Hi there, b is my dataframe. I have a dataframe. I am trying to get rid of the -INF values but didnt have much luck b[which(is.finite(b))] I can get rid of it for a single column b[,1][which(is.finite(b[,2]))] but not for all dataframe I used it inside of

[R] Removing -Inf values from all the colums in a dataframe

2011-02-23 Thread Ramya
Hi there, b is my dataframe. I have a dataframe. I am trying to get rid of the -INF values but didnt have much luck b[which(is.finite(b))] I can get rid of it for a single column b[,1][which(is.finite(b[,2]))] but not for all dataframe I used it inside of a sapply but still no dice my guess