poppr.all: Process a list of files with poppr

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Index_calculations.r

Description

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.

Usage

1
poppr.all(filelist, ...)

Arguments

filelist

a list of files in the current working directory

...

arguments passed on to poppr

Value

see poppr

Author(s)

Zhian N. Kamvar

See Also

poppr, getfile

Examples

1
2
3
4
5
6
7
8
## 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)

poppr documentation built on Sept. 7, 2021, 9:06 a.m.