Algebraic statistics in R