I frequently come back to R after a hiatus and usually mix up simple commands from other languages that I use in the interval. I think that a quick refresher of the simple commands/tips would be valuable for later.
Command | Explanation |
typeof() | Find out object type |
Difference between "=" and "<-" | The "=" has a local scope while "<-" has a global scope. Seems to me that I should use the "=", also is consistent with other languages. |
Difference between "[[]]" and "[]" in list | Double bracket get the content, while single brackets return a list with the content as the first element |