forked from equipe22/BioQuality
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmissingdata.R
More file actions
24 lines (17 loc) · 818 Bytes
/
missingdata.R
File metadata and controls
24 lines (17 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Date of creation :
# Load list of exams ####
# Listcount <- read.csv2(paste0(rept,"Count.csv"))
# listecalc <- as.character(Listcount$CONCEPT_CD[which(Listcount$getbio==1)])
# Detect missing data ####
df_final <- data.frame(matrix(NA, nrow=0, ncol=3))
colnames(df_final) <- c("namefile", "startT_MD", "endT_MD")
for(kk in 1:length(listecalc)){
kk <- 1
result <- detect_missing(df = loaddata(listecalc[kk]), listecalc[kk])
df_final <- rbind(df_final, result)
}
write.table(df_final, file = paste0(rept2, "missingdata/missingdata_list.csv"), append = FALSE, quote = FALSE, sep = ";",
eol = "\n", na = "NA", dec = ".", row.names = FALSE,
col.names = TRUE, qmethod = c("escape", "double"),
fileEncoding = "")
rm(list=c("df_final","kk","result"))