Re: [R] Replace values in data.frame conditional on another data.frame

2008-03-05 Thread John Kane
Try bb[is.na(aa)] <- NA It may be simple but it is not necessarily obvious :) --- Carson Farmer <[EMAIL PROTECTED]> wrote: > Dear List, > > I am looking for an efficient method for replacing > values in a > data.frame conditional on the values of a separate > data.frame. Here is > my scenario:

[R] Replace values in data.frame conditional on another data.frame

2008-03-05 Thread Carson Farmer
Dear List, I am looking for an efficient method for replacing values in a data.frame conditional on the values of a separate data.frame. Here is my scenario: I have a data.frame (A) with say 1000 columns, and 365 rows. Each cell in the data.frame has either valid value, or NA. I have an additional