-
Writing a function has three big advantageR 2018. 8. 24. 16:48
Writing a function has three big advantage over using copy-and-paste
1. You can give a function an evocative name that makes your code easier to understand.
2. As requirements change, you only need to update code in one place, instead of many.
3. You eliminate the chance of making incidental mistakes when you copy and paste (i.e. updating a variable name in one place, but not in another).
[출처] R for Data Science, Hadley Wickham & Garrett Grolemund, O'REILLY, p269
'R' 카테고리의 다른 글
R의 결과를 파워포인트에 작성하기 (0) 2018.09.07 다중응답분석 (0) 2018.09.04 magrittr 패키지의 tee pipe operator : %T>% (0) 2018.08.24 ggvis package : input_radiobuttons() (0) 2018.08.10 Relational Data (1) 2018.08.04