search for: rajarshi

Displaying 20 results from an estimated 116 matches for "rajarshi".

2003 Oct 01
1
question about predictions with linear models
...= 16 Why do I get a different length? Furthermore, the original formula specified the variable tdepv which is not in the dataframe that I send to predict() - should I also make a variable called tdepv in the dataframe y? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- The way to love anything is to realize that it might be lost.
2003 Nov 10
10
shuffling a vector
...aking a 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...
2003 Nov 10
5
attaching data to any object
...on I make 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.
2003 Sep 03
3
plotting a distribution curves
...urves (say 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 t...
2011 Sep 19
14
gmaps4rails "acts_as_gmappable" error
Hi all, I started to see fun of gmaps4rails gem from https://github.com/apneadiving/Google-Maps-for-Rails. After everything done. When visited the locahost, i got the following error. undefined local variable or method `acts_as_gmappable'' for #<Class: 0x31a9da8> the error is due to i have line "acts_as_gmappable" in my model. Anybody knows how this is
2004 Oct 15
0
SJava 0.65 and R 2.0.0 (slightly long)
...: Couldn't start Java Virtual Machine: Cannot find the Omegahat interface manager class. Check you classpath! >From the output fof javaConfig() I was'nt surprised. However I thought that the install would set the paths to the OmegaHat interface manager. So I set the classpath to /home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/../Interfaces: \ /home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/../R/Java: \ /home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/antlr.jar: \ /home/rajarshi/src/Rlibrary/SJava/org/omegahat/Jars/Environment.jar: \ /home/rajarshi/src/Rlibrary/SJava/org/omegah...
2009 Jun 23
2
an idiom to handle i'th element of a set of lists simultaneously
...list I could 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]]
2003 Mar 03
2
saving a plot to a file
...GIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm a new user of R and have managed to make a plot of a histogram. Is there any way I set the title and axes labels and then save the plot as an image (png/gif)? Thanks - -- - ------------------------------------------------------------------- Rajarshi Guha <rajarshi at presidency.com> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE - ------------------------------------------------------------------- "A fractal is by definition a set for which the Hausdorff Besicovitch dimension strictl...
2011 Jan 31
2
identify subsets based on two grouping factors
...t.grp1 <- 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
2010 Jul 27
3
xyplot with all columns of a data.frame on a single plot
...3 curves 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
...more elegant 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
2007 Aug 13
4
vertically oriented color key in heatmaps
...r, I was 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.
2003 Oct 02
4
using a string as the formula in rlm
...I get: Error 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 C...
2003 Sep 30
2
subsetting a matrix
...ake out 4 columns and 161 rows. Thus I made a 161 x 2 array I and filled it up with the row,col indices. However doing, X[ I ] gives me a vector of the extracted elements. Is there anyway I can coerce this into a 161 x 4 matrix? ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Disembowelling takes guts.
2003 Sep 14
1
title for plot contain 4 subplots
...places this title as the title of the last plot and not the whole page. The mtext help page says that I can use it to write text to the outer margins of the device region but I cant seem to work out how I can acheive this. Thanks ------------------------------------------------------------------- Rajarshi Guha <rajarshi at presidency.com> <http://jijo.cjb.net> 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...
2003 Sep 15
1
question regarding ks.test()
...e H_0 is rejected. However I dont calculate a P value. Is this method significantly different from the method used in R? Since I get the same value of D in both methods is there any reason to prefer one over the other? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rajarshi at presidency.com> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- After a number of decimal places, nobody gives a damn.
2004 Mar 02
3
using object reference
...9; but the the after returning from the function the attribute of x does not get changed. Could anybody point out how I could achieve this? Do I need to use the R.oo package or can this be done without external packages? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- How I wish I were what I was when I wished I were what I am.
2004 Feb 06
3
a grep/regexpr problem
...ned) why 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
2003 Dec 03
3
checking for identical columns in a mxn matrix
...experience has shown me, getting rid of loops is a good idea :) Would anybody have any suggestions as to how I could do this job more efficiently. (It would be nice to know which columns are identical but thats not a necessity.) ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Entropy isn't what it used to be.
2004 May 20
2
column sorting a matrix with indices returned
...g, > sx <- apply(x, c(2), sort, index.return=T) results in sx being a series of lists. I know I could then go through the list and create a sorted matrix and an index matrix. But is there a neater way to do this? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Accuracy, n.: The vice of being right