Re: [R] if ... problem with compound instructions

2006-12-31 Thread Bill.Venables
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

Re: [R] if ... problem with compound instructions

2006-12-31 Thread Duncan Murdoch
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.

[R] if ... problem with compound instructions

2006-12-31 Thread Richard Rowe
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