Checking Data Type In R