Skip to contents

The submissions received on TSD arrive as both csv and jsons. Combining all these files produce the entire data from a form. This function combines all the csv within TSD to create a unified data.frame. If output_file is provided, will also write the the data for a file.

Usage

nettskjema_tsd_csv2data(input_dir, output_file = NULL)

Arguments

input_dir

character. Path to input directory.

output_file

character. Path to output file.

Value

data.frame with all data

Examples

if (FALSE) {
nettskjema_tsd_csv2data("/durable/nettskjema-submissions/cleaned/80902")

nettskjema_tsd_csv2data("/durable/nettskjema-submissions/cleaned/80902",
    output_file = "/durable/nettskjema-submissions/cleaned/80902/data.csv")
}