I realized after sending this that there is an argument in read.tree,
skip, that basically has exactly the same effect.
- Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: [email protected]
blog: http://blog.phytools.org
On 4/16/2014 3:38 PM, Liam J. Revell wrote:
If your tree file is just a list of Newick trees, with one tree per
line, you could do:
file<-"your file name"
nskip<-[number of trees to skip]
text<-scan(file,what="character",skip=nskip)
tree<-read.tree(text=text)
Obviously, it would be easy to put this in a loop where nskip is
increased every iteration.
All the best, Liam
Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: [email protected]
blog: http://blog.phytools.org
On 4/16/2014 3:27 PM, Agus Camacho wrote:
I might have not expressed myself perfectly before:
I'd like to import into R a specific tree contained wihin big list of
trees
in either newick or nexus file.
For the sake of memory size, i'd like to import them one by one,
instead of
importing the list as a whole.
Thanks again,
Agus
2014-04-16 15:55 GMT-03:00 Agus Camacho <[email protected]>:
Dear coleagues,
Anybody knows how to read only one tree from a tree list? I went
throught
the help and available tutorials but could find nothing.
Thanks in advance.
Agus
--
Agustín Camacho Guerrero.
Doutor em Zoologia.
Laboratório de Herpetologia, Departamento de Zoologia, Instituto de
Biociências, USP.
Rua do Matão, trav. 14, nº 321, Cidade Universitária,
São Paulo - SP, CEP: 05508-090, Brasil.
_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at
http://www.mail-archive.com/[email protected]/
_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at
http://www.mail-archive.com/[email protected]/
_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/