Description Usage Arguments Details
Measures euclidean distance from each point to the nearest trainline
1 | near.train(dataset, trainline.psp, trainline.p4s)
|
dataset |
a merged gps/accelerometer dataset |
trainline.psp |
a |
trainline.p4s |
the |
We assume you have processed accelerometer data using the process.acc
and gps.acc.merge
. This function then takes train line data, in psp
format,
and uses the nncross
function from the spatstat package to measure distance from
each point to the nearest train line.
To find out the proj4string
of the trainline data, use package sp function
proj4string
on a SpatialLinesDataFrame
of train data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.