R/LotkasN.R

Defines functions LotkasN

Documented in LotkasN

LotkasN <- function(Sums,FullTable)
{
  N <- nrow(FullTable)
  lx <- Sums[3]
  ly <- Sums[4]
  xy <- Sums[5]
  x2 <- Sums[6]
  lx2 <- lx^2
  top <- (N*xy) - (lx*ly)
  bottom <- (N*x2) - (lx2)
  Nfinal <- top/bottom
  return(Nfinal)
}

Try the LotkasLaw package in your browser

Any scripts or data that you put into this service are public.

LotkasLaw documentation built on May 2, 2019, 8:54 a.m.