more R indexing gotcha