Functional Data Structures in R