This function reads multiple landing files (sales-notes) to a list with a list of tables for each file.
ReadLanding(FileNames = character(), ForceUnique = FALSE)
An object of StoX data type LandingData
).
This sales notes are expected to be XML-formatted with elements defined by the namespace: http://www.imr.no/formats/landinger/v2.
Occasionally landing sets contain data that where rows are not uniquely identified by the key columns in that format.
In these cases a warning is issued, and it is important to handle those duplicates to avoid problems in later processing.
Uniqueness of keys are checked for in some typical downstream StoX processes, such as StoxLanding
,
so the problem may potentially disappear after filtering. Otherways, the parameter 'ForceUnique' may be considered, if
one is confident these records does in fact represent separate landings.
exampleFile <- system.file(
"testresources","landing.xml", package="RstoxData")
landingData <- ReadLanding(exampleFile)