write.treeWAS: Write 'treeWAS' output to a CSV file.

View source: R/treeWAS.R

write.treeWASR Documentation

Write treeWAS output to a CSV file.

Description

Save the results of treeWAS to a CSV file as a summary table of significant findings and scores (excluding longer data elements within the output). .

Usage

write.treeWAS(x, filename = "./treeWAS_results")

Arguments

x

The output returned by treeWAS.

filename

A character string containing the path and filename to which the .csv file will be saved; by default, filename = "./treeWAS_results" and so would be saved to the current working directory.

Author(s)

Caitlin Collins caitiecollins@gmail.com

Examples

## Example ##
## Not run: 
## Load data:
data(snps)
data(phen)
data(tree)

## Run treeWAS:
out <- treeWAS(snps, phen, tree, seed = 1)

## Save results to home directory:
write.treeWAS(x = out, filename = "~/treeWAS_results")

## End(Not run)


caitiecollins/treeWAS documentation built on March 9, 2024, 3:15 p.m.