Killer whale analysis - R code