R Package Matrix