View source: R/interpolate_by_group.R
interpolate_by_group | R Documentation |
interpolate_trips, interpolate your tracking data to a specific interval per group
interpolate_by_group(
GPS_data = GPS_data,
interval = interval,
column_datetime = column_datetime,
column_lat = column_lat,
column_lon = column_lon,
column_group = column_group
)
GPS_data |
you GPS data |
interval |
the interval in seconds |
column_datetime |
a column with date and time, and in a date time format |
column_lat |
the name of your column with the 'Latitude' data |
column_lon |
the name of your column with the 'Longitude' data |
column_group |
the name of your column with the group data |
Gives back a data frame with the interpolated data
GPS_interpolated<-interpolate_by_group(GPS_data=GPS_preparado,interval='900 sec',
column_datetime='dia_hora',column_lat='Latitude',column_lon='Longitude',column_group='trip_number')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.