Skip to contents

This function is called within the mapMetadata function.

It searches for previous OUTPUT files in the output_dir, that match the dataset name.

If files exist, it removes duplicates and autos, and stores the rest of the data elements in a dataframe.

Usage

copy_previous(Dataset_Name, output_dir)

Arguments

Dataset_Name

Name of the dataset

output_dir

Output directory to be searched

Value

It returns a list of 2: df_prev_exist (a boolean) and df_prev (NULL or populated with data elements to copy)