this is example data frame of my project:
SNP <- data.frame(SNP = c(-1,0,1,-1,1,1,0,-1), SNP1 = c(-1,-1,-1,1,-1,0,1,-1), SNP2 = c(0,0,0,1,-1,-1,-1,1))
Appoint a frequency of the A allele for each of the markers, if it is <0.5 then we leave it.
I need to drop out markers which that have MAF <5%.
Is there any function that computes this or another way?