R/fthetacum.R

`fthetacum` <-
function(angles, degrees=TRUE, ...){

	ps <- c()
	for(i in seq_along(angles)){
		upangle <- ifelse(degrees, angles[i], angles[i]*pi/180)
		ps[i] <- integrate(ftheta,lower=0,upper=upangle, degrees=degrees, ...)[[1]]
	}
ps
}

Try the LeafAngle package in your browser

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

LeafAngle documentation built on May 29, 2017, 8:32 p.m.