Example script showing how to use the r2vcftools package to check and visualize VCF files, filter sites and individuals, save filtered VCF files, calculate genetic diversity and differentiation metrics and convert VCF to other formats.
The r2vcftools package was developed by Nathaniel S. Pope and can be found here: https://github.com/nspope/r2vcftools