Skip to content

STIDF - endTime, STI -> Track

4 messages · Edzer Pebesma, Chris English

#
Edzer,

Thank you for your considered reply.  I did in fact do something like you
suggested and used my duration as my data.  It then occurred to me that
there were probably knock on consequences to relaxing Track to an STI, and
digging around find that gstat is looking for, or to my reading thus far,
is looking for ST*DF for variogramsST and krigingST, so ST*DF it will be.

Reading the code of Track (https://github.com/edzer/trajectories) has also
led me to reconsider my data preparation process because the @connections
contains pertinent information relating to the validity of a given trial.
The researcher's challenge was to observe the subject in real time and
reject trails that moved from a central fixation beyond 2 degrees of visual
angle.  And I now just find that this was done without the benefit of a
bounding circle to guide the 2 degree assessment.

So, what I think I might end up doing is borrow (and in my case then
mangle) your elegant connections code to track distance relative to the
central fixation point.  I assume that @connections$distance is the
distance from one sampling point/time and the subsequent.  And then check
whether accepted trials were actually valid as well.
And that will then be my data for the STIDF.

Thank you again,

Chris

On Fri, May 29, 2015 at 6:56 PM, Edzer Pebesma <
edzer.pebesma at uni-muenster.de> wrote:

            

  
  
#
What I actually ended up doing was using spDistsN1 as commented in your
code for use with sp-1.1-1 for the
distances, and copied wholesale your directions_ll function and padded it
with a trailing 0.0 as directions_ll
returns N-1.

In looking at head(trackObj at connections) I note an absence of row.names()
in @connections that one might find useful for tests between @connections
and the STIDF data using match. Could I suggest this as an enhancement to
Track?

Cheers,

Chris

On Mon, Jun 1, 2015 at 12:33 PM, chris english <
englishchristophera at gmail.com> wrote:

            

  
  
#
On 06/02/2015 08:45 AM, chris english wrote:
Sure, but so far I've seen no cases where the points from which these
connections are computed have meaningful row.names. And the match is
essentially by row order, meaning you don't need base::match to match,
right?

  
    
#
History being a good guide, if you say I don't need match I know its
right.  I came to R from
SQL and view (viewed) base::match as something analogous to a where
clause in select, a comfort to myself in my query that I was asking for
what I
thought I was asking for, by name. I'll try and wrap my thinking around row
order relative to my needs and possible tests.  I think I was considering
ID's because
as I understand ST objects they are immutable once created so slap in
everything
you might need before you build it...

I'll concentrate on row order.

Thanks again,

Chris

On Tue, Jun 2, 2015 at 3:02 AM, Edzer Pebesma <edzer.pebesma at uni-muenster.de