Re: [R] about .function

2020-01-30 Thread Bogdan Tanasa
appreciate it ! thank you Duncan ! On Thu, Jan 30, 2020 at 11:18 AM Duncan Murdoch 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 ve

Re: [R] about .function

2020-01-30 Thread 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",

[R] about .function

2020-01-30 Thread Bogdan Tanasa
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"

Re: [R] about function *lapply*

2009-10-09 Thread Duncan Murdoch
On 09/10/2009 12:42 AM, guangchuang yu wrote: I used *lapply* and *for* to call the function *GetC* respectively. The output is different!!! I can't figured out how this happen! It's so wierd. x=lapply(ipi.go,GetC, ont = "BP", org=cell.cycle) unlist(x) *IPI00011654 IPI00013683 "cell cycle" "c

[R] about function *lapply*

2009-10-08 Thread guangchuang yu
I used *lapply* and *for* to call the function *GetC* respectively. The output is different!!! I can't figured out how this happen! It's so wierd. > x=lapply(ipi.go,GetC, ont = "BP", org=cell.cycle) > unlist(x) *IPI00011654 IPI00013683 "cell cycle" "cell cycle"* > categorate=list() > for (i in 1