Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You know, I often forget to mention formula notation as a reason I love R. It is superbly natural. R's natural support for data frame (collections of multidimensional observations) and formula notation make's it easy for every single disparate library to convene on a common language for high-level usage. Pretty near every function shares the same first two parameters:

   out <- f(formula, data-frame, ... other options ...)


   Pretty near every function shares the same 
   first two parameters
Better then to make those two params passed by default so you don't have to type them every time.


The functions take the same idea as a parameter, not the exact same parameter. You still need to specify what formula the function will operate on.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: