Learn R Programming

animl (version 3.2.0)

export_camtrapR: Export data into sorted folders organized by station

Description

Export data into sorted folders organized by station

Usage

export_camtrapR(
  manifest,
  out_dir,
  out_file = NULL,
  label_col = "prediction",
  file_col = "filepath",
  station_col = "station",
  unique_name = "uniquename",
  copy = FALSE
)

Value

manifest with link column

Arguments

manifest

dataframe containing images and associated predictions

out_dir

directory to export sorted images

out_file

if provided, save the manifest to this file

label_col

column containing species labels

file_col

column containing source paths

station_col

column containing station names

unique_name

column containing unique file name

copy

if true, hard copy

Examples

Run this code
if (FALSE) manifest <- export_camtrapR(manifest, out_dir, out_file=NULL, label_col='prediction',
                                     file_col="filepath", station_col='station', 
                                     unique_name='uniquename', copy=FALSE)

Run the code above in your browser using DataLab