I'm nearly certain @martin.R is sending you down the right path. Just to add a bit;
The meta: General Package for Meta-Analysis has a home page here:
http://www.imbi.uni-freiburg.de/lehre/lehrbuecher/meta-analysis-with-r
And check out the R code (from meta: General Package for Meta-Analysis textbook homepage) with a bunch of examples to help you get started. (It's generally considered to be best practice to support your r package with intro vignettes to help onboard people like yourself, but this is a pretty good alternative to that)
These examples are derived from the textbook (if you're a uni student, your library can make a digital copy of this available to you for free):