Reads a dsc matrix file —returned from the PDDIST program— and converts into an R matrix for subsequent use.
An ASCII data file such as the *.dsc file generated by the PDDIST program
a phylogenetic variance-covariance matrix that can be used in R functions, such as for GLS models.
Ramon Diaz-Uriarte and Theodore Garland, Jr.
Diaz-Uriarte, R., and Garland, T., Jr., in prep. PHYLOGR: an R package for the analysis of comparative data via Monte Carlo simulations and generalized least squares approaches.
Garland, T. Jr. and Ives, A. R. (2000) Using the past to predict the present: confidence intervals for regression equations in phylogenetic comparative methods. The American Naturalist, 155, 346-364.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# First need to find where the example data sets are path.to.example <- paste(path.package(package="PHYLOGR"),"Examples/",sep="/") example.dsc.file <- paste(path.to.example,"ifsmi.dsc",sep="") phylog.matrix1 <- read.phylog.matrix(example.dsc.file) # You could jump directly to the call to the function if you # are willing to enter the path explicitly. # For example in some Linux systems the following works # read.phylog.matrix("/usr/lib/R/library/PHYLOGR/Examples/hb12n.dsc") # In Windows, maybe do: # read.phylog.matrix("c:\\progra~1\\rw1001\\library\\PHYLOGR\\Examples\\hb12n.dsc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.