View source: R/Index_calculations.r
poppr.all | R Documentation |
poppr.all is a wrapper function that will loop through a list of files from the working directory, execute [poppr()], and concatenate the output into one data frame.
poppr.all(filelist, ...)
filelist |
a list of files in the current working directory |
... |
arguments passed on to poppr |
see [poppr()]
Zhian N. Kamvar
[poppr()], [getfile()]
## Not run:
# Obtain a list of fstat files from a directory.
x <- getfile(multi=TRUE, pattern="^.+?dat$")
# run the analysis on each file.
poppr.all(file.path(x$path, x$files))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.