search for: equisp

Displaying 2 results from an estimated 2 matches for "equisp".

Did you mean: equip
2011 Aug 15
2
area under the curve
...x <- seq(x[1], x[2], length = n) if (is.function(y)) y <- y(x) else { cat("y must be a function when x is\n") cat("of length equal to 2.\n") stop("Bailing out.\n") } equisp <- TRUE } else { if (is.function(y)) y <- y(x) else if (length(y) != length(x)) stop("Mismatch in lengths of x and y.\n") s <- order(x) x <- x[s] ddd <- diff(x) if (any(ddd == 0))...
2008 Jul 01
2
Area Under a Curve
I would like to integrate the area under a curve without any smoothing or the like- just on the raw numbers. I looked at integrate() but it requires a function which I assume means something like x+x^2+x^3 is there a built in function in R for this? #let's say x <- seq(1:50) y <- seq(1:50) plot(y~x) # the are would be 1250 # I would like to be able to do this but on more complicated