Functions to access Basis data from R