interpolate_by_group: interpolate_trips, interpolate your tracking data to a...

View source: R/interpolate_by_group.R

interpolate_by_groupR Documentation

interpolate_trips, interpolate your tracking data to a specific interval per group

Description

interpolate_trips, interpolate your tracking data to a specific interval per group

Usage

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
)

Arguments

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

Value

Gives back a data frame with the interpolated data

Examples

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')


MiriamLL/sula documentation built on July 7, 2024, 10:34 a.m.