search for: guha

Displaying 20 results from an estimated 233 matches for "guha".

2008 Sep 19
0
Fwd: Lines between panels in lattice
Forgot to send to the list. Begin forwarded message: > From: Saptarshi Guha <saptarshi.guha@gmail.com> > Date: September 19, 2008 1:43:50 PM GMT-04:00 > To: Gabor Grothendieck <ggrothendieck@gmail.com> > Subject: Re: [R] Lines between panels in lattice > > Certainly. > > x=cbind(runif(10),rnorm(10),c(rep(1,5),rep(2,5))) > xyplot(x[,2]~x[...
2003 Nov 10
10
shuffling a vector
...new vector from the original one using these random indices. However, is there an alternative (more elegant) method to do this? I tried help.search('shuffle') but it does'nt return anything relevant. Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Q: What is a dyslexic, agnostic, insomniac? A: Someone who lays awake at night wondering if there really is a...
2009 Jun 23
2
an idiom to handle i'th element of a set of lists simultaneously
...ould use lapply, but for more than one list I'm using a for loop. Is there an idiom that would let me use something like lapply, but the function specified to lappy would have access to an element from each list? (In Python, I would have used for a,b,c in zip(x,y,z): ...) Thanks, -- Rajarshi Guha [[alternative HTML version deleted]]
2009 Sep 23
2
Crash due to extreme example
...caught bus error *** address 0x1, cause 'non-existent physical address' Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace Running on Leopard, Macbook (intel, 4gb ram) R version 2.9.2 (2009-08-24) (No libraries loaded) Saptarshi Guha | saptarshi.guha at gmail.com | http://www.stat.purdue.edu/~sguha
2003 Nov 10
5
attaching data to any object
...a lot of objects and save when exiting. Usually I note down seperately what each object is about. Is it possible to attach data to any object which would essentially be a short note explaining the meaning of it? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- The Heineken Uncertainty Principle: You can never be sure how many beers you had last night.
2008 Sep 19
1
Lines between panels in lattice
...;native"),unit(3.8,"native")) seekViewport("plot1.panel.1.1.vp") grid.line.to(unit(1.2,"native"),unit(3.5,"native")) However, I can see the line in the bottom panel, but nothing in the top. Is there some clipping going on? Thanks Saptarshi Saptarshi Guha | saptarshi.guha@gmail.com | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]]
2009 Jan 05
2
eval using a environment X but resultsin .GlobalEnv
...l(E,envir=V) however all assignments end up in V. I would like the results of assignments in E to end up in the .GlobalEnv ? Or at least the calling environment. Is there a quick way to this instead of iterating over all objects E and assigning into .GlobalEnv? Thank you Saptarshi -- Saptarshi Guha - saptarshi.guha at gmail.com
2010 Jul 27
3
xyplot with all columns of a data.frame on a single plot
...by doing xyplot(D1 + D2 + D3 ~ X, data) but in some cases I might have columns D1 ... D10. Is there a way to plot all 10 columns without having to specify each individual term? (By analogy with formulae in lm, I thought, xyplot(. ~ X, data) would work, but it didn't) Thanks, -- Rajarshi Guha NIH Chemical Genomics Center
2005 May 26
5
a more elegant approach to getting the majority level
...gant way to do it: x <- factor(sample(1:0, 5,replace=TRUE)) levels(x)[ which( as.logical((table(x) == max(table(x)))) == TRUE ) ] (The length of x will always be an odd number, so I wont get a tie in max()) Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Alcohol, an alternative to your self - 'Alcohol' by the Bare Naked Ladies
2008 Nov 30
1
Rserve and creating a list of lists
...le to interpret org.rosuda.REngine.REXPUnknown@1629ce8c[4] *** REXPFactory unable to interpret org.rosuda.REngine.REXPUnknown@1629ce8c[4] * ** REXPFactory unable to interpret org.rosuda.REngine.REXPUnknown@1629ce8c[4] How can I in general,force the unserialize to return a list? Saptarshi Guha | saptarshi.guha@gmail.com | http://www.stat.purdue.edu/~sguha Marijuana is nature's way of saying, "Hi!". [[alternative HTML version deleted]]
2011 Jan 31
2
identify subsets based on two grouping factors
...t;- cut(x$grp1, 3) cut.grp2 <- cut(x$grp2, 3) Thus, for each combination of levels in cut.grp1 and cut.grp2, I'd like to obtain the distribution of levels obs. I know I can loop over each pair of levels in cut.grp1 and cut.grp2, but is there a more elegant way to achieve this? -- Rajarshi Guha NIH Chemical Genomics Center
2012 Mar 16
3
Y-axis label on the right hand side in lattice?
Hello, Is there a way to add ylab on the right hand side also (in lattice)? Different from the left hand side? Cheers Saptarshi [[alternative HTML version deleted]]
2009 May 10
2
In C, a fast way to slice a vector?
...sr = R_tryEval( .... )) sr is a RAWSXP vector. I wish to return another RAWSXP starting at position 13 onwards (base=0). I could create another RAWSXP of the correct length and then memcpy the required bytes and length to this new one. However is there a more efficient method? Regards Saptarshi Guha
2003 Oct 02
4
using a string as the formula in rlm
...rror in qr(x) : NA/NaN/Inf in foreign function call (arg 1) In addition: Warning message: NAs introduced by coercion I can understand why this method results in the error but is there any way to get around this? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Gods are fragile things; they may be killed by a whiff of science or a dose of common sense. -- Chapman Cohen
2008 Oct 06
1
Lattice and Axis height
...(Draw,DontDraw,Draw,....) Is this possible? Regards Saptarshi P.S I'm essentially passing dummy variables to xyplot and for each value of the dummy variable pulling in data from a postgres database setting my limits for each panel based on the pulled in data and plotting that. Saptarshi Guha | saptarshi.guha@gmail.com | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]]
2003 Sep 03
3
plotting a distribution curves
...y normal or chi sq etc) from within R? For example I looked up the *chisq family of functions but I'm not sure as to how I would use them to generate a plot of the chi sq distribution (for arbitrary d.o.f). Thanks, ------------------------------------------------------------------- Rajarshi Guha <rajarshi at presidency.com> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Did you hear that two rabbits escaped from the zoo and so far they have only recaptured 116 of them?
2008 Dec 12
1
Writing a Long across the network?
..."!q", value) However, I have tried this writeBin(length(x),con=conn,endian="big") #conn opened in binary But the response on the server side is wrong, eg. 1 is received as 4294967297 How do I then write long across the network from R? Thank you Saptarshi Saptarshi Guha | saptarshi.guha@gmail.com | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]]
2009 Aug 14
1
Embed R, and provide a function to user scripts
...ion that is given to me x<-1 boo(x) One way is to create a library with function boo that performs .Call to boo, but is there a way that I can do something like ainstall("rboo", boo) and calls to rboo in the language will be sent to 'boo' ? Thank you Saptarshi Saptarshi Guha [[alternative HTML version deleted]]
2004 Feb 06
3
a grep/regexpr problem
...is regexpr failing? Finally, could anybody provide a hint as to how I should modify the regex to get the sequence between {}. (I've used the same regex in Python code to get the sequence and it works fine.) Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Entropy requires no maintenance. -- Markoff Chaney
2007 Aug 13
4
vertically oriented color key in heatmaps
...thinking of a vertical bar with the color range rather than the style that gplots provides. Is there any package (or code snippet) that would let me add a vertical color key to an image() or heatmap plot? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rguha at indiana.edu> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Q: What do you get when you put a spinning flywheel in a casket and turn a corner? A: A funeral precession.