Monday 4 May 2015

Function Names With Leading Dots

Cited from What does the dot mean in R – personal preference, naming convention or more?

"Function names with leading dots are somewhat hidden from general view. Functions that are meant to be purely internal to a package sometimes use this.

In this context, "somewhat hidden" simply means that the variable (or function) won't normally show up when you list object with ls(). To force ls to show these variables, use ls(all.names=TRUE). By using a dot as first letter of a variable, you change the scope of the variable itself. "

No comments:

Post a Comment