I have vector of characters, letters and symbols:
vec <-c(letters, 0:9, LETTERS, c("!","§","$","%","&"))
I would like to build a function recycle that can recycle the vector vec so that recycle(vec, 68) would be similar to vec[68] (an 'a') and recycle(vec, -1) would give an '&'.