d.phy2df {EnvNJ}R Documentation

Convert a Phylip Distance Matrix into a DataFrame

Description

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

Usage

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

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

[Package EnvNJ version 0.1.3 Index]