Skip to content
Prev 359693 / 398502 Next

difficult to find index value

FAQ 7.31 I think. Here are a couple things you can try.

close_enough <- function(x, y) isTRUE(all.equal(x, y))

periodlimint<-seq(from=0.1, to=50, by=0.1)

indexAtest <- which(sapply(periodlimint, close_enough, y = 0.7))

match( as.character(.7), periodlimint)

Best,
Ista

On Wed, Mar 30, 2016 at 1:35 AM, Rubel Das via R-help
<r-help at r-project.org> wrote: