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:
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
2 matches
Mail list logo