Dear all,
if I may ask please a very simple question :
what does "." mean in front of function name : an example below . thank
you very much !
.set_pbmc_color_11<-function() {
myColors <- c( "dodgerblue2",
"green4",
"#6A3D9A", # purple
"grey",
"tan4",
"yellow",
"#FF7F00", # orange
"black",
"#FB9A99", # pink
"orchid",
"red")
about .function
3 messages · Bogdan Tanasa, Duncan Murdoch
On 30/01/2020 1:38 p.m., Bogdan Tanasa wrote:
Dear all,
if I may ask please a very simple question :
what does "." mean in front of function name : an example below . thank
you very much !
.set_pbmc_color_11<-function() {
myColors <- c( "dodgerblue2",
"green4",
"#6A3D9A", # purple
"grey",
"tan4",
"yellow",
"#FF7F00", # orange
"black",
"#FB9A99", # pink
"orchid",
"red")
It means that the default ls() won't list the function, you'd need ls(all.names = TRUE). By convention such functions are usually meant for internal use, but there are lots of exceptions to that convention. The same convention is used in Unix-alike file systems. Duncan Murdoch
appreciate it ! thank you Duncan ! On Thu, Jan 30, 2020 at 11:18 AM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
On 30/01/2020 1:38 p.m., Bogdan Tanasa wrote:
Dear all,
if I may ask please a very simple question :
what does "." mean in front of function name : an example below . thank
you very much !
.set_pbmc_color_11<-function() {
myColors <- c( "dodgerblue2",
"green4",
"#6A3D9A", # purple
"grey",
"tan4",
"yellow",
"#FF7F00", # orange
"black",
"#FB9A99", # pink
"orchid",
"red")
It means that the default ls() won't list the function, you'd need ls(all.names = TRUE). By convention such functions are usually meant for internal use, but there are lots of exceptions to that convention. The same convention is used in Unix-alike file systems. Duncan Murdoch