interpolate | R Documentation |
A function to interpolate your data at an specific interval
interpolate(
GPS_data = GPS_data,
interval = interval,
column_datetime = column_datetime,
column_lat = column_lat,
column_lon = column_lon
)
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 |
returns a interpolated data frame using the interval provided
GPS01_trip5 <-GPS_preparado[GPS_preparado$ID == 'GPS01' & GPS_preparado$trip_number=='trip_5',]
GPS01_trip1_interpolated<-interpolate(GPS_data = GPS01_trip5,interval='10 sec',
column_datetime = 'dia_hora',column_lat = 'Latitude',column_lon = 'Longitude')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.