Implemented (almost) R commands