Skip to contents

Introduces small random changes to an existing file to simulate an updated or modified version. Overwrites the original file with the modified data.

Usage

simulate_file_changes(file_path, seed = 123)

Arguments

file_path

Character. Full path to the file to be modified (supported: .qs, .rds, .csv).

seed

Optional integer. Random seed for reproducibility.

Value

Invisibly returns the modified data.table. The original file is overwritten.