# NOT RUN {
data(data_ONA) # loading example dataset
ONA(data=data_ONA, ATN = "ATN", BC ="BC", dATN =0.05)
data(data_compiled) #loading the example dataset compiled at file level
#applying ONA on a compiled file where data come from different files
data_compiled$file_ID<-as.factor(data_compiled$file_ID)
data_compiled$ONA_BC<-unlist(lapply(split(data_compiled, data_compiled$file_ID),
function(x) ONA(data=x, ATN = "ATN", BC ="BC", dATN =0.05)))
# }
Run the code above in your browser using DataLab