Re: [R] using "list=" to force evaluation before execution

2012-01-12 Thread Aditya Bhagwat
l > > **Not strictly true here as ls() doesn't return a list, but just go with > it. It's a vector of names, not a list in the data structure sense. > > On Jan 12, 2012, at 11:55 AM, Aditya Bhagwat > wrote: > > > Dear all, > > > > I have noticed that t

[R] using "list=" to force evaluation before execution

2012-01-12 Thread Aditya Bhagwat
Dear all, I have noticed that the expression 'list =' is sometimes used to tell R to evaluate something before executing it. Two examples: rm(list=ls()) a = 3 myVarName = 'a' save(list=myVarName, file=...) I was wondering whether there is any documentation on this way of using "list". Which i

[R] parallel computation in plyr 1.7

2012-01-12 Thread Aditya Bhagwat
Dear all, I have a question regarding the possibility of parallel computation in plyr version 1.7. The help files of the following functions mention the argument '.parallel': ddply, aaply, llply, daply, adply, dlply, alply, ldply, laply However, the help files of the following functions do not

[R] Tell emacs to load new R version

2011-06-29 Thread Aditya Bhagwat
Dear, How do I tell Emacs to update to the new R version I installed? It still loads the old R version. I already updated the the system path, but that didn't seem to work. Thanks for your help, Aditya -- Aditya Bhagwat [[alternative HTML version de

Re: [R] Increasing grayscale value in scatter plot with number of points on particular location

2011-01-27 Thread Aditya Bhagwat
I googled a bit and found that cairo needs to be installed on Ubuntu. Through Ubuntu package manager, I installed package r-cran-cairodevice, but that doesn't seem to solve the problem. Aditya On Thu, Jan 27, 2011 at 10:43 AM, Aditya Bhagwat wrote: > Dear Prof. Ripley, > > Thanks

Re: [R] Increasing grayscale value in scatter plot with number of points on particular location

2011-01-27 Thread Aditya Bhagwat
inux. and I tried the suggested approach but got an empty plot and the following warning message: In plot.xy(xy, type, ...) : semi-transparency is not supported on this device: reported only once per page Any suggestions on how to proceed? Many thanks, Aditya > > On Thu, 27 Jan 2011, Adi

[R] Increasing grayscale value in scatter plot with number of points on particular location

2011-01-27 Thread Aditya Bhagwat
falls on a particular location, make it gray, if many points fall, make it black. I tried to search the help archives, but didn't find any useful answers. Anyone has any suggestion? Many thanks for your help! Aditya -- Aditya Bhagwat [[alternative HTML version de

[R] How to call subset in a for loop?

2011-01-26 Thread Aditya Bhagwat
n't work, it returns everything, and not a subset for (currField in c("A", "B", "C")){ subset(myDf, myField=currField) } How should I modify the call of subset in the loop to make it work? Thanks for your help! Adi -- Aditya Bhagwat [[alternati