library(ape)
library(phangorn)
<- ape::read.tree(text='(((A,B),C),D);')
tree1 <- ape::read.tree(text='(((A,C),B),D);')
tree2
<- phangorn::RF.dist(tree1, tree2)
dist
dist
[1] 2
This session will cover embedding R code in qmd.
The quarto markdown .qmd
is essentially a successor to RMarkdown, mostly backward compatible and following similar syntax.
Here we are loading the libraries used throughout this document.
You can add special tags to be able to create links to figures. See Figure 1 for details.
We can also read in files that are provided in a relative location to this document.