runSpagedi: Execute SPAGeDi through R console.

Description Usage Arguments Details Value

View source: R/run-spagedi.R

Description

Calls SPAGeDi executable via system() function

Usage

1
runSpagedi(input_name, output_name, perm = 999)

Arguments

input_name

\(string\) - Name of SPAGeDi formatted input data file. Must be in working directory.

output_name

\(string\) - Name of output file. Will overwrite if file already exists, or create new file if it doesn't

perm

Number of permutations. Default is 999

Details

SPAGeDi must be installed on your system, and able to be run from the Shell/Terminal. Function is currently configured to run a basic spatial autocorrelation analysis between individuals using the kinship coefficient of Loiselle et al. 1995, testing for significance, and jacknifing over loci.

Value

Does not return anything directly, but writes results of analysis to a tab-delimited text file at output_name.


lukembrowne/rSpagedi documentation built on Sept. 11, 2019, 3:38 a.m.