Closed nmprista closed 2 years ago
Anything apart from basic checks should be done when creating a "prep" object - the "raw" object should just be a copy of the RDBES data.
Ok, you can now also pass in the file names as a parameters - otheriwse it will use the default names that the RDBES download provides
The following script can be used to see the functions working:
# Load H1 data
myH1RawObject <- createRDBESRawObject(rdbesExtractPath = "tests\\testthat\\h1_v_1_19")
# Check the object created is ok (should return TRUE)
checkRDBESRawObject(myH1RawObject)
# Load H5 data
myH5RawObject <- createRDBESRawObject(rdbesExtractPath = "tests\\testthat\\h5_v_1_19")
# Check the object created is ok (should return TRUE)
checkRDBESRawObject(myH5RawObject)
# Combine our H1 and H5 objects
myCombinedRawObject <- combineRDBESRawObjects(rdbesRawObject1=myH1RawObject,
rdbesRawObject2=myH5RawObject)
# Check the object created is ok (should return TRUE)
checkRDBESRawObject(myCombinedRawObject)