add names method to r