Hi there,
I am stuck with my data analysis on following problem:
I have one variable “car” and another called StartLongitude (and latitude). I now want to calculate the EndLatitude (and Latitude) for the car variables, at least for as many as possible.
An example of an extract of the variables would look like this:
Car StartLongitude
1 48.3678
1 48.377798
1 48.1009
2 48.000099
2 48.98220
2 48.876232756453
2 48.5367
2 48.729486182375
These are already sorted according to start time. That means that car 1’s second position of StartLongitude is its first position of EndLongitude. This means that for EndLongitude, it is the data of StartLongitude just one row up, expect the last value of each car.
Car StartLongitude EndLongitude
1 48.3678 48.377798
1 48.377798 48.1009
1 48.1009
2 48.000099 48.98220
2 48.98220 48.876232756453
2 48.876232756453 48.5367
2 48.5367 48.729486182375
2 48.729486182375
That means that I can calculate (in theory) all EndLongitude values, except the last end-position of all cars.
I know this is a quite specific problem. I have no idea which nodes to use, and since I am not familiar with java, would have also no idea how to put that into a java code.
I would very much appreciate it, if there is anyone that can help. Thank you so so much to all of you in advance!!
Best
Theresa