intro_r/doc/objects.org

971 B
Executable File

Loading data into R

Objects in R

Everything in R is an object; that is, a dynamically created, self- describing container for data.

Everything that "happens" is a function, i.e, and object that contais another objects (arguments). The fundamental computation in R is a function call.

Objects are, almost always, created by assiging a name in an environment:

[cite:@chambers2008software]

Creating an object

  object1 = c(1:5)

Visualizing the object

  object1

Three objects that are different from other 'common' objects in R

  • Connections
  • Environments
  • External pointers

References