names <- names(data_pheno_DF)
df <- data.frame(first = c(1))
for(i in 1:(length(names)-1)){
c <- c(1)
df <- cbind(df, c)
}
names(df) <- names
data_pheno_DF <- rbind(df, data_pheno_DF)
#data_ph <- data_pheno_DF
data_pheno_DF <- data_ph
for(i in 1:(length(names))){
v <- data_pheno_DF[[i]]
data_pheno_DF[[i]][1] <- (length(v[v == "[Not Available]"]) + length(v[v == "[Not Applicable]"]))/length(v)
}
for(i in length(names):1){
if(data_pheno_DF[[i]][1] > 0.85){data_pheno_DF[i] <- NULL}
}
data_pheno_DF <- data_pheno_DF[-c(1), ]