nex <- nexml_read(system.file("examples", "comp_analysis.xml", package = "RNeXML"))
s <- summary(nex)
# number of major blocks:
s$nblocks
# each characters block defines 1 character:
s$ncharacters
# summary stats of states per character (for morphological matrices there is
# typically one state set per character)
s$nstates # note that first block is of continuous type, so no stats there
# pretty-printed summary:
nex # this is the same as show(nex)
Run the code above in your browser using DataLab