Generic programming with typed R vectors
