[SPARKR-94] Add a  method to get an element of a pair RDD object by key.

Could you add `{ }` to the function here ? I know its a one line function, but we use this style to make sure its easy to extend the function.