Remove rows which are not pointing to a valid VesselDetails (VD) records i.e. those rows which have a value of VDid that does not exist in the VD table.
Source:R/removeBrokenVesselLinks.R
removeBrokenVesselLinks.RdRemove rows which are not pointing to a valid VesselDetails (VD) records i.e. those rows which have a value of VDid that does not exist in the VD table.
Examples
if (FALSE) { # \dontrun{
myH1RawObject <-
importRDBESDataCSV(rdbesExtractPath = "tests\\testthat\\h1_v_1_19")
myFields <- c("VDlenCat")
myValues <- c("18-<24")
myFilteredObject <- filterRDBESDataObject(myH1RawObject,
fieldsToFilter = myFields,
valuesToFilter = myValues
)
myObjectValidVesselLinks <- removeBrokenVesselLinks(
objectToCheck = myFilteredObject,
verbose = FALSE
)
} # }