Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.19 KB

Day1.md

File metadata and controls

62 lines (48 loc) · 1.19 KB

R Fundamentals

Day 1

Duncan Temple Lang

Statistics & Graduate Studies.

  • Goals

  • R Session for Day 1

  • REPL

  • Evaluating literals 1, "text"

  • Evaluating symbols pi

  • Evaluating 1 + 2

  • Everything is a function call

  • Environments

  • Search Path

    • finding symbols
    • finding functions
    • find(), get()
  • Calling functions

    • Matching arguments to parameters
    • Scope within a function
      • environments/call frames
      • package environments
    • Lazy evaluation
    • pass by value ("everything" is a copy)
    • return value
    • on.exit()
  • Call stack

  • Assigning to a symbol

    • pi = 1
    • in which environment does the assignment take place
  • attach(). See attach.R

Reading/Notes