Computing Data Structures In R