On Behalf Of Richard Rowe
Sent: Monday, 1 January 2007 12:36 PM
To: r-help@stat.math.ethz.ch
Subject: [R] if ... problem with compound instructions
I am having problems with the 'if' syntax.
I have an n x 4 matrix, X say. The first two columns hold x, y values and
I am attempting to fil
On 12/31/2006 9:35 PM, Richard Rowe wrote:
> I am having problems with the 'if' syntax.
>
> I have an n x 4 matrix, X say. The first two columns hold x, y values and
> I am attempting to fill the second two columns with the quadrant in which
> the datapoint (x, y) is and with the heading angle.
I am having problems with the 'if' syntax.
I have an n x 4 matrix, X say. The first two columns hold x, y values and
I am attempting to fill the second two columns with the quadrant in which
the datapoint (x, y) is and with the heading angle.
So I have two problems
1) how to do this elegantly