4.5 Assigning data to an object

rstudio logo

  • Assigning a value to the object B: B <- 10

  • NOTE: You can see the objects you created in the upper-right panel in RStudio: the environment.

  • Reassigning: modifying the content of an object:

B + 10

B unchanged !!

B <- B + 10

B changed !!