Another approach is to split up the indices: `split(seq_along(attribs), names(attribs)` and then do the indexing yourself.