> Is your function portable to R? That function is not directly portable to R. I assume that something similar in intent could be constructed in R. Rich