interpolate: A function to interpolate your data at an specific interval

interpolateR Documentation

A function to interpolate your data at an specific interval

Description

A function to interpolate your data at an specific interval

Usage

interpolate(
  GPS_data = GPS_data,
  interval = interval,
  column_datetime = column_datetime,
  column_lat = column_lat,
  column_lon = column_lon
)

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

Value

returns a interpolated data frame using the interval provided

Examples

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

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