Why does object beginning with a period not appear in the global environment pane in rstudio? [duplicate]

三世轮回 提交于 2021-02-05 09:34:48

问题


Create object

.object <- 2

Confirm object exists in global namespace

.object 
# [1] 2

yet


回答1:


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?



来源:https://stackoverflow.com/questions/56098656/why-does-object-beginning-with-a-period-not-appear-in-the-global-environment-pan

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!