R utility functions to help cross-validate R and matlab LexisDB data objects