So, for loops are dead simple (as long as you remember to get the results out of the .Local environment into the .Global environment). v <- vector(length = length(object)) for(i in seq_along(object)) v[i] = sqrt(i) Therefore, substitute any f for s...

Markdown supported · ⌘↵ to post
No responses yet.