Learn R Programming

psyosphere (version 0.1.6)

Analyse GPS Data

Description

Analyse location data such as latitude, longitude, and elevation. Based on spherical trigonometry, variables such as speed, bearing, and distances can be calculated from moment to moment, depending on the sampling frequency of the equipment used, and independent of scale. Additionally, the package can plot tracks, coordinates, and shapes on maps, and sub-tracks can be selected with point-in-polygon or other techniques. The package is optimized to support behavioural science experiments with multiple tracks. It can detect and clean up errors in the data, and resulting data can be exported to be analysed in statistical software or geographic information systems (GIS).

Copy Link

Version

Install

install.packages('psyosphere')

Monthly Downloads

7

Version

0.1.6

License

MIT + file LICENSE

Maintainer

Benjamin Ziepert

Last Published

May 24th, 2020

Functions in psyosphere (0.1.6)

about analysing tips

Guide how to analyse GPS data
des_duplicates

Count duplicates within each track
average_duplicates

Correct coordinates with the same time
apply_tracks

Run function on each track in a psyo data frame
about demos

Explanation how the demo files can be accessed
average_coordinates

Calculates the mean position of coordinates within a time interval.
about documentation

psyosphere documentation guideline
about common mistakes

Tips to prevent common mistakes
apply_shift

Copy columns and offset the index of the copied column
about functions

psyosphere functions guideline
des_length

Get the number of coordinates within each track
des_sum

Calculates sum for each track
export_kml

Export tracks as kml files
des_sd

Calculate normal and weighted sds while excluding gaps in data
export_gpx

Export tracks as gpx files
dir_get_gpx

Read GPX files from directory into data frame.
des_mean

Calculate normal and weighted means while excluding gaps in data
des_max

Get the highest value within each track
distance_line

Add shortest distance to a line
des_min

Get the lowest value within each track
des_summary

Creates a data frame with a summary of descriptive information for each track
psyo_rounds2

GPS example with 3 selected rounds
val_var

Validate variables
distance_psyo

Add distance to another track in psyo format
distance_to_direct_line

Add deviation from shortest route from begin of track to a line
dir_add_csv

Bind CSV data to data frame
psyo_rounds

GPS example of walking in circles
t_speed

Add speed
plot_line

Plot line on map
t_time_difference

Add time difference column for weighted statistics
mark_gap_segments

Adding column with segment names between gaps
psyo_geomean

Example data to demonstrate the geomean function
psyo

Example how data should be formatted.
des_first

Get first value within each track
select_gaps

Select all coordinates with a gap
select_between_polygons

Select tracks between two polygons.
plot_map

Get a Google map
plot_polygon

Plot polygon on map
plot_tracks

Plot tracks on a map
select_test_sample

Select a sample from each track
distance_peers

Add distance to peers
select_without_gaps

Select all coordinates without gap
des_last

Get last value within each track
mark_inside_polygon

Mark coordinates within a polygon
psyo_rounds_map

Map for data psyo_rounds and psyo_rounds2
psyosphere

psyosphere details
val_cname

Validate the column name of a data frame
t_bearing

Add bearings
distance_point

Add the distances to a point from each coordinate
t_distance

Add distance to next coordinate
mark_time_gaps

Mark segments between data gaps
val_psyo

Validate psyo format
mark_speed_gaps

Mark speeds that exceed a certain speed limit as gaps