clean_export_files {animaltracker}R Documentation

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

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

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

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

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

[Package animaltracker version 0.2.0 Index]