search for: saptarshi

Displaying 20 results from an estimated 98 matches for "saptarshi".

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[,...
2010 Feb 14
4
Feature Request: Multiline Comments
...to include multiline comments like /* acomment */ ? This way I can integrate emacs org-mode with my R code, so that I can have a table of contents, section folding, html-output of source etc. e.g /* * Display Code */ #+BEGIN_SRC R foo <- function(...){ stuff } #+end_src and so on . Thanks Saptarshi
2008 Sep 19
1
Lines between panels in lattice
...ve.to(unit(0.72,"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 Dec 01
4
Package is loaded but functions are not exported
...^\\rh") On R-2.8 (Linux, 64), upon loading the package I have the rh functions present. On R-2.10, Mac OS X, (32 bit), it builds, loads, but the functions are not loaded, i.e the only function is rhyper (which is not from my package). Is there something wrong with my package setup? Regards Saptarshi
2009 Jan 05
2
eval using a environment X but resultsin .GlobalEnv
...nment V. I do this via eval(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
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 Sep 23
2
Crash due to extreme example
...gt; *** 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
2008 Nov 30
1
Rserve and creating a list of lists
...ctory unable 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]]
2009 May 10
2
In C, a fast way to slice a vector?
..., PROTECT(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
2008 Oct 06
1
Lattice and Axis height
...e bottom strip of every panel is grid viewport with a height, there could be an option to set the height to 0 when I'm the top panel. Or maybe like par.strip.text I could set it to a vector equal to the length of the panels, alternating (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/~...
2008 Dec 12
1
Writing a Long across the network?
...sending struct.pack( "!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
...##user supplied expression 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]]
2009 Sep 20
1
Return a list from a .Call but segfaults
...e that message2rexp is to blame. Yet, when i replace the code with R code, that is using readBin and only calling calling C(to call message2rexp) to deserialize a raw vector, I get no such error. There is something I'm missing , could someone tell me where? Thank you for your time Regards Saptarshi === Using GDB? ==== I would like to run it through gdb, i get the following message [Thread debugging using libthread_db enabled] Error while reading shared library symbols: Cannot find new threads: generic error Cannot find new threads: generic error] and cannot proceed. ==== Code ==== SEXP...
2010 Aug 15
2
time of serialization
...em.time(y <- lapply(x,function(r){ system.time(serialize(r,NULL))['elapsed'] })) > sum(unlist(y)) 18.812 > z user system elapsed 494.144 0.041 494.247 So, the entire lapply takes ~26 times longer than the sum of the individual operations. Have i missed something? Regards Saptarshi
2014 Mar 06
2
A question about multiple(?) out of order ReleaseObject
...ssociated with 'v' Is (1) and (2) correct? I have not used R_protect/unprotect, because if I return from cfunc without the equivalent number of unprotects, i get 'unbalanced stack' warnings. I'd rather not have to worry about that because i intend to balance it later. Regards Saptarshi [[alternative HTML version deleted]]
2008 Nov 14
1
Splitting a lattice stripplot across several pages
...of packets in a connection. Roughly stripplot(totpacks~portnum,data=network) Due to the large number of server ports in my dataset, the y-axis labels overlap so I would like to split it across several panels(1 panel per page) with about 25-50 per panel. Is there a way to do this? Regards Saptarshi Saptarshi Guha | saptarshi.guha@gmail.com | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]]
2013 Apr 26
2
Transferring R to another computer, R_HOME_DIR
...R_HOME_DIR. I have the need to rsync the entire folder below /usr/lib64/R to another computer into another directory location. Without changing the R shell script, how can i force it read in R_HOME_DIR? Or maybe i misunderstood the bash source? (Note, i cannot recompile on target machine) Cheers Saptarshi 1. I also realize Rscript will not work (i think path is hard coded in the source) Beginning of /usr/lib64/R/bin/R R_HOME_DIR=/usr/lib64/R if test "${R_HOME_DIR}" = "/usr/lib64/R"; then case "linux-gnu" in linux*) run_arch=`uname -m` case "$run_...
2009 Jul 17
2
Remembering a value in multiple calls of a function
...sn't this environment lost? Also the print displays GlobalEnv, yet the globalenv does not have any mention of startgiven. This code was inspired from and old issue of RJournal , but I'm not sure how this works. I'm not sure how this works and an explanation would be helpful. Thank you Saptarshi getN <- function(start){ startgiven <- start; incr <- function(n=NA){ print(parent.frame()) if(!is.na(n)) startgiven<<-n startgiven<<-startgiven+1 return(startgiven) } } a=getN(10) a() #11 a()#12
2007 Aug 05
2
Question regarding QT device
...is not an exported object from 'namespace:grDevices' Error : .onLoad failed in 'loadNamespace' for 'qtutils' Error: package/namespace load failed for 'qtutils' Could anyone provide some pointers to get that deviceIsInteractive to work? Thanks for your time Saptarshi Saptarshi Guha | sapsi@pobox.com | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]]
2007 Feb 13
1
Multidimensional Integration over arbitrary sets
...on the other e.g integrate f(x,y)=x*y over {x,0,1} and {y,x,1}. i.e \int_0^1 \int_x^1 xy dydx I checked adapt but it doesn't seem to help here. Are they any packages for this sort of thing? I tried RSitesearch but couldn't find the answer to this. Many thanks for you help. Regards Saptarshi Saptarshi Guha | sapsi@pobox.com | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]]