Learn R Programming

qtkit (version 1.1.1)

create_data_origin: Create Data Origin Documentation

Description

Creates a standardized data origin documentation file in CSV format, containing essential metadata about a dataset's source, format, and usage rights.

Usage

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

Value

If return=TRUE, returns a data frame containing the data origin template. Otherwise returns invisible(NULL).

Arguments

file_path

Character string. Path where the CSV file should be saved.

return

Logical. If TRUE, returns the data frame in addition to saving. Default is FALSE.

force

Logical. If TRUE, overwrites existing file at path. Default is FALSE.

Details

Generates a template with the following metadata fields:

  • Resource name

  • Data source (URL/DOI)

  • Sampling frame (language, modality, genre)

  • Collection dates

  • Data format

  • Schema description

  • License information

  • Attribution requirements

Examples

Run this code
tmp_file <- tempfile(fileext = ".csv")
create_data_origin(tmp_file)
read.csv(tmp_file)

Run the code above in your browser using DataLab