Re: [R-sig-phylo] Multistate Trait Polymorphism

2011-04-07 Thread Joe Felsenstein
Luke Harmon said -- Yes Emmanuel is correct, fitDiscrete does not deal with polymorphic data. I have a fix that I made for a specific project that I'm sending to Charles, if anyone else is interested email me off-list. It's very clunky. I suspect this is not just a technical programming

[R-sig-phylo] Converting from DNAbin to a matrix

2011-04-07 Thread Josh B
Dear Listserve, I have a seemingly simple problem that I cannot figure out. I would like to convert an element of class DNAbin to a matrix. Consider the example from the read.dna help file: cat(3 40, No305 NTTCGACACACCCACTACTNTTATCAGTCACT, No304

Re: [R-sig-phylo] Converting from DNAbin to a matrix

2011-04-07 Thread Liam J. Revell
Hi Josh, Try doing this when you read in the data: ex.dna-read.dna(exdna.txt,format=sequential,as.character=T) This will return an object of class matrix instead of a DNAbin object. The elements in the matrix should just be the letters from your input file. There may be a better way to do

[R-sig-phylo] Fitzpatrick and Turelli 2006 - phylogenetic signal in range overlap

2011-04-07 Thread Gustavo A. Bravo
Hello everyone, By any chance, has anybody tried putting together an R code to perform the analyses of range overlap in a phylogenetic context proposed by Fitzpatrick and Turelli 2006? It is a nice way to incorporate measurements of pair-wise similarity into a phylogenetic context. Warren et

Re: [R-sig-phylo] Fitzpatrick and Turelli 2006 - phylogenetic signal in range overlap

2011-04-07 Thread Gustavo A. Bravo
Rob, Excellent! Thank you so much for the hint. Cheers, Gustavo On 4/7/11 8:15 PM, Rob Lanfear wrote: Hi Gustavo, This is implemented in the package phyloclim, and the function is age.range.correlation(). Here's the description from the help file: This function can be used to test for