d.phy2df: Convert a Phylip Distance Matrix into a DataFrame

Description Usage Arguments Value See Also Examples

View source: R/dataprep.R

Description

Converts a phylip distance matrix into a either an R dataFrame or matrix.

Usage

1
d.phy2df(phyfile, as = 'matrix')

Arguments

phyfile

path to the file containing the distances in phylip format.

as

class of the output R data. It should be either 'dataframe' or 'matrix'.

Value

Either a dataframe or a matrix containing the distances read from the phy file.

See Also

d.df2pny()

Examples

1
## Not run: d.phy2df(phyfile = "./data_t/d_dummy.txt")

EnvNJ documentation built on Sept. 27, 2021, 5:07 p.m.

Related to d.phy2df in EnvNJ...