This function reads raw text in from the nexus file finput. It then writes the TAXA and
blockname blocks to a temporary nexus file using CHARACTERS instead of
blockname. It then re-reads the temporary nexus file using
read.characters2(finput, blockname = "characters2")
This function was created mainly to handle reading CHARACTERS2 nexus blocks. These blocks are used by brownie along with CHARACTERS to separate discrete (factor) data from continuous (numeric) data. It is also used because SIMMAP-formatted (version < 1.5) nexus files tend to cause problems with the nexus class library (which phylobase uses)
A data.frame containing the data from
J. Conrad Stack
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.