Skip to contents

Copies run_dir to out_dir, swapping every old label for the new one in CSV, TSV, JSON, Markdown, text and HTML files (and in file names). Numbers do not change. Images are copied unchanged. The Excel workbook and the DOCX / PDF manuscript are not relabelled in R: use the Python command scripts/relabel_study.py, which relabels the workbook and rebuilds the manuscript from it.

Usage

relabel_output_files(run_dir, out_dir, old_labels, new_labels)

Arguments

run_dir

Output folder of the run (left unchanged).

out_dir

New folder.

old_labels, new_labels

Mappings or mapping files, as in relabel_sites().

Value

A list with written, unchanged (copied as they are) and not_relabelled (left out) file names, invisibly.