I have setup a variable using ifelse but can\'t use it when doing a forloop. The intention is to find the largest index array as a reference for my forloop.
i