read_lotek: Read Lotek gps txt files into a spatial dataframe.

View source: R/read_lotek.R

read_lotekR Documentation

Read Lotek gps txt files into a spatial dataframe.

Description

This function takes one or more lotek txt files and turns them into an sf collection of points. If there are multiple versions of the same fix record, duplicates will be removed by default. Only the duplicate from the most recent file is kept.

Usage

read_lotek(files, ids = NULL, remove_duplicates = TRUE, show_col_types = FALSE)

Arguments

files

Input files. This can be a path to a single file, a character vector of paths to multiple files, or a list of paths to multiple files.

ids

the device id #s. by default this comes from the filename. Note that shiny file input will change filenames, so this field must be used in that case.

remove_duplicates

if 'FALSE', duplicate records are included in the output

show_col_types

Passed to readr functions. Useful for debugging.

input_crs

reference system used for interpreting coords from file

output_crs

reference system for output spatial df

tz

timezone string to convert timezone processing

Examples

points = read_lotek(system.file("lotek/PinPoint33452.txt", package="beastr"))
summary(points)


rgzn/beastr documentation built on June 7, 2022, 2:43 a.m.