List Comprehensions in R