I demonstrate short R examples - summarise a data frame group by a column and a quick way of implementing simulation