Sorry, but I totally suck with for/while loops.
How can I correctly write the loop function until needed value is reached? Basically I have this kind of function:
kendall(QK(1, B_6x6, 0.1), correct = TRUE)$value
kendall(QK(2, B_6x6, 0.1), correct = TRUE)$value
kendall(QK(3, B_6x6, 0.1), correct = TRUE)$value
.....etc.
but I need it to run untill this value will be equal 1.
like..
for (i in 1:99) {
kendall(QK(i, B_6x6, 0.1), correct = TRUE)$value
}
But how to correctly express this condition, so I could know which i this condition is reached? Thank you very much for any input!