cts5_CheckDataCount: Compare the number of available data point

View source: R/CTS5_USEA_technical.R

cts5_CheckDataCountR Documentation

Compare the number of available data point

Description

cts5_CheckDataCount compare the number of data point per sensor and per phase between the technical file and the dataMerged file

Usage

cts5_CheckDataCount(dataprofile)

Arguments

dataprofile

data and technical files read from cts5_readProfile

Value

list containing check (= True if the number of data point are the same); and DataCheck a data.frame with the full comparison.

Examples

cts5_decode(floatname=floatname,CycleNumber=c,PatternNumber = p,subdir="./CSV",sensors=c("sbe41","do","eco","ocr"))

dataprofile<-cts5_readProfile(floatname=floatname,CycleNumber=c,PatternNumber = p)
    
dataprofile<-cts5_ProcessData(Meta$SENSORS,dataprofile)

dataprofile<-cts5_ProcessData(Meta$SENSORS,dataprofile)

if (!cts5_CheckDataCount(dataprofile)$check){
 cat("!! Warning, data count error \n")
}



EdLeymarie/USEA_R documentation built on July 16, 2025, 1 p.m.