#' areas
#'
#' functions to calculate the size of a triangle
#' @param x1,x2,x3,y1,y2,y3 co-ordinates
#' @return Returns area of triangle
#' @export
#' @examples
#' areaTriangle(0.5,0,1,1,0,0)
areaTriangle=function(x1,x2,x3,y1,y2,y3){(x1*y2+x2*y3+x3*y1-x1*y3-x2*y1-x3*y2)/2}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.