miscellaneous R functions