![]() ![]() Even after using R for many years I still learn new techniques and better ways of approaching old problems. Writing good functions is a lifetime journey. Paste (i.e. updating a variable name in one place, but not in another). You eliminate the chance of making incidental mistakes when you copy and You can give a function an evocative name that makes your code easier toĪs requirements change, you only need to update code in one place, instead ![]() Writing a function has three big advantages over using copy-and-paste: Functions allow you to automate common tasks in a more powerful and general way than copy-and-pasting. One of the best ways to improve your reach as a data scientist is to write functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |