Useful R commands for data analysis