View source: R/removeBrokenVesselLinks.R
removeBrokenVesselLinks | R Documentation |
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.
removeBrokenVesselLinks(objectToCheck, verbose = FALSE, strict = TRUE)
objectToCheck |
an RDBESDataObject. |
verbose |
(Optional) If set to TRUE more detailed text will be printed out by the function. Default is TRUE. |
strict |
(Optional) This function validates its input data - should the validation be strict? The default is TRUE. |
an RDBESDataObject with any records with an invalid VDid removed
## Not run:
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
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.