Skip to contents

This function creates a data frame with attributes about the origin of the data, writes it to a CSV file at the specified file path, and returns the data frame, if requested.

Usage

create_data_origin(file_path, return = FALSE, force = FALSE)

Arguments

file_path

A character string specifying the file path where the data origin file should be saved.

return

A logical value indicating whether the data origin should be returned.

force

A logical value indicating whether to overwrite the file if it already exists.

Value

A data frame containing the data origin information.

Examples

if (FALSE) {
create_data_origin("data_origin.csv")
}