format_clip_wave: Process multiple wav files by copying them with a new...

View source: R/Clip_wav_file.R

format_clip_waveR Documentation

Process multiple wav files by copying them with a new filename or clipping to a given length.

Description

Process multiple wav files by copying them with a new filename or clipping to a given length.

Usage

format_clip_wave(
  segment_df,
  in_base_directory,
  out_base_directory,
  length_clip_col,
  sub_dir_out_col,
  filepath_in_col,
  out_filename_col,
  filewarn = T,
  use_job = F,
  ...
)

Arguments

segment_df

Data frame with details of file locations.

in_base_directory

String. Directory where wav files are read from.

out_base_directory

String. Directory to output files to

length_clip_col

String with column name for the length of clip in seconds

sub_dir_out_col

String or vector of strings with column name for directories to output to, nested in out_base_directory

filepath_in_col

String with column name for path to file, either nested in base directory or absolute

out_filename_col

String with column name for output filename

filewarn

Logical. Default to TRUE. Should function provide warnings about file movements

use_job

Logical. Default to FALSE. Use the job package to copy files.

Value

logical or logical vector of status of file copy.


dhope/ARUtools documentation built on Jan. 18, 2024, 5:47 a.m.