Many thanks for this Jorge. Exactly what I was looking for. I've never
encountered any() before. Quite useful.
Thanks again!
Sam
On Wed, Mar 9, 2011 at 1:05 PM, Jorge Ivan Velez
wrote:
> Hi Sam,
>
> How about this?
>
> test[apply(test, 1, function(x) !any(x == '#DIV/0!')), ]
>
> HTH,
> Jorge
>
Hi Sam,
How about this?
test[apply(test, 1, function(x) !any(x == '#DIV/0!')), ]
HTH,
Jorge
On Wed, Mar 9, 2011 at 3:29 PM, Sam Albers <> wrote:
> Hello Venerable List,
>
> I am trying to loop (I think) an operation through a list of columns in a
> dataframe to remove set of #DIV/0! values. I
Hello Venerable List,
I am trying to loop (I think) an operation through a list of columns in a
dataframe to remove set of #DIV/0! values. I am trying to do this like so:
#Data.frame
test <- read.csv("http://dl.dropbox.com/u/1574243/sample_data.csv";,
header=TRUE, sep=",")
#This removes all the
3 matches
Mail list logo