0

Create object

.object <- 2

Confirm object exists in global namespace

.object 
# [1] 2

yet

enter image description here

NelsonGon
  • 13,015
  • 7
  • 27
  • 57
stevec
  • 41,291
  • 27
  • 223
  • 311

1 Answers1

6

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
  • 377,200
  • 20
  • 156
  • 213