clean_export_files: Cleans all animal GPS datasets (in .csv format) in a chosen...

Description Usage Arguments Value Examples

Description

Cleans all animal GPS datasets (in .csv format) in a chosen directory. Optionally exports the clean data as spreadsheets, a single .rds data file, or as a list of data frames

Usage

1
2
3
4
5
6
7
8
clean_export_files(
  data_dir,
  tz_in = "UTC",
  tz_out = "UTC",
  export = FALSE,
  cleaned_filename = NULL,
  cleaned_dir = NULL
)

Arguments

data_dir

directory of GPS tracking files (in csv)

tz_in

input time zone, defaults to UTC

tz_out

output time zone, defaults to UTC

export

logical, whether to export the clean data, defaults to False

cleaned_filename

full name of output file (ending in .rds) when export is True

cleaned_dir

directory to save the processed GPS datasets as spreadsheets (.csv) when export is True

Value

list of cleaned animal GPS datasets

Examples

1
2
3
# Clean all animal GPS .csv datasets in the demo directory

clean_export_files(system.file("extdata", "demo_nov19", package = "animaltracker"))

animaltracker documentation built on Nov. 18, 2020, 1:08 a.m.