Learn R Programming

EnvNJ (version 0.1.3)

d.phy2df: 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

Run this code
# NOT RUN {
d.phy2df(phyfile = "./data_t/d_dummy.txt")
# }

Run the code above in your browser using DataLab