cy Webber
> > Sent: Tuesday, February 15, 2011 4:10 PM
> > To: r-help@r-project.org
> > Subject: [R] distance between consecutive points
> >
> > Dear R users,
> >
> > I have two coloumns of data, say x and y, referring to a list of
> > points in 2D space.
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Darcy Webber
> Sent: Tuesday, February 15, 2011 4:10 PM
> To: r-help@r-project.org
> Subject: [R] distance between consecutive points
>
> Dear R users,
y, 16 February 2011 1:10 p.m.
To: r-help@r-project.org
Subject: [R] distance between consecutive points
Dear R users,
I have two coloumns of data, say x and y, referring to a list of
points in 2D space. I am trying to develop a code that will give me
the distances (using Pythagoras) between consec
r-help@r-project.org
> Subject: [R] distance between consecutive points
>
> Dear R users,
>
> I have two coloumns of data, say x and y, referring to a list of
> points in 2D space. I am trying to develop a code that will give me
> the distances (using Pythagoras) between co
Dear R users,
I have two coloumns of data, say x and y, referring to a list of
points in 2D space. I am trying to develop a code that will give me
the distances (using Pythagoras) between consecutive points (xi,yi)
and (xi+1,yi+1). So far I have come up with the following:
for (i in 1:length(x))
5 matches
Mail list logo