0

Create object

.object <- 2

Confirm object exists in global namespace

.object 
# [1] 2

yet

enter image description here

NelsonGon
  • 12,469
  • 5
  • 25
  • 52
stevec
  • 27,285
  • 13
  • 133
  • 181

1 Answers1

5

Because variables starting with a . are hidden

If you do ls() you'll not find that object. From ?ls

all.names
a logical value. If TRUE, all object names are returned. If FALSE, names which begin with a . are omitted.

To get that name in the environment you need to do

ls(all.names = TRUE)

As the object is omitted it is not showing it in the workspace?

Ronak Shah
  • 355,584
  • 18
  • 123
  • 178