I'm a newbie to R, so please be patient.
I have 4 populations of one species(pop in 1 column) , with diferent sample sizes.Having analysed mitDNA haplotypes (hap in another column) for each individual (each row) I now need to standardize the sample size for all populations and estimate FST. I supose this may simply be done with some resampling method with replicates in order to obtain a random subsample within populations, but I'm not sure what's the proper way to do it.
Also, I have never estimated Fst in R. Is there a way to obtain the output in a table similar to the one below?Or else directly apply the results of the subsampling in a package in R that may estimate Fst after this procedure?
df <- read.table(text="pop hap
1 A
1 A
1 B
1 B
1 B
1 C
1 D
2 F
2 F
2 A
2 A
2 B
2 E
3 A
3 A
3 B
3 D
4 A
4 A
4 A
4 B
4 B", header=TRUE)
Hope I made myself clear.
Thank you very much, in advance.