Appendix B — Quick intro to R

B.1 For those who are from other languages, especially Python

  1. The character . is NOT special. It doesn’t mean packages or classes. It is just one of the characters that can be used as variable names.
  2. R recommends to use <- to denote assigning values, although = is accepted. a <- 1 and a = 1 are essentially the same. It has some benefits