[R] matrix logic
tom at maladmin.com
Wed Jan 11 04:26:48 CET 2006
On Tue, 10 Jan 2006 20:25:23 -0500, r user <ruser2006 at yahoo.com> wrote:
> I have 2 dataframes, each with 5 columns and 20 rows.
> They are called data1 and data2.I wish to create a
> third dataframe called data3, also with 5 columns and
> 20 rows.
> I want data3 to contains the values in data1 when the
> value in data1 is not NA. Otherwise it should contain
> the values in data2.
> I have tried afew methids, but they do not seem to
> work as intended.:
> Please suggest the âbestâ way.
Not sure about the bast but...
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help