Rdnainvar(X, path=NULL, ...)quiet suppress some output to R console (defaults to quiet = FALSE); weights vector of weights of length equal to the number of columns in X (defaults to unweighted); and cleanup remove PHYLIP input & output files after the analysis is completed (defaults to cleanup = TRUE).
More information about the dnainvar program in PHYLIP can be found here Rdnaparsdata(primates)
primates<-primates[sample(nrow(primates),4),]
tree<-Rdnainvar(primates)Run the code above in your browser using DataLab