How To Have A Different Input And Output In R