writeEuCodedFile: Write Inspection Data to File in EU Format

View source: R/writeEuCodedFiles.R

writeEuCodedFileR Documentation

Write Inspection Data to File in EU Format

Description

Write Inspection Data to File in EU Format

Usage

writeEuCodedFile(
  inspection.data,
  output.file = NULL,
  version = 3L,
  dbg = TRUE,
  ...
)

Arguments

inspection.data

inspection data as retrieved by e.g. readEuCodedFile: list with elements header.info, inspections, observations. List element header.info is a list with at least the following elements: separator (column separator), decimal (decimal character "." or ","), quote (character used to quote texts in order to allow the separator sign to be used within the text). List element observations is a data.frame with required columns inspno (inspection number)

output.file

full path to output file

version

version of implementation. One of c(1, 2, 3)

dbg

if TRUE debug messages are shown

...

passed to toEuFormat_v2

Value

if output.file is given, the path to the output file is returned, otherwise (output.file = NULL) the file content is returned as a vector of character representing the lines of the file.


KWB-R/kwb.en13508.2 documentation built on April 3, 2024, 9:47 a.m.