search for: rxg218

Displaying 20 results from an estimated 65 matches for "rxg218".

Did you mean: 0x218
2003 Nov 10
10
shuffling a vector
...r 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 dog!
2005 May 26
5
a more elegant approach to getting the majority level
...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
2003 Nov 10
5
attaching data to any object
...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.
2004 Feb 06
3
a grep/regexpr problem
...r 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
2004 May 20
2
column sorting a matrix with indices returned
...pply(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
2003 Oct 02
4
using a string as the formula in rlm
...r(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
2004 Mar 02
3
using object reference
...er 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 Jan 20
2
graph algorithms in R
...was wondering if there are any packages available that can represent mathematical graphs along with functions to manipulate them? Google did'nt turn up anything ( I may be asking too much of R :-/ ) 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's yellow, linear, normed and complete? A: A Bananach space.
2004 Mar 27
3
a question about scoping functions
...func() I can do source('helper.R') - but that would place them in the global namespace. Is it possible to source some file within a func() such that the sourced functions will be local to func()? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <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?
2003 Oct 01
1
question about predictions with linear models
...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.
2004 Dec 05
1
matrix of 1,0's to a data.frame of factors
.... So I then tried n <- data.frame( apply(m,2,as.character) ) apply(n,2,function(x) {levels(x) <- c(1,0)}) But this does not change the levels Can anybody point me in the right direction? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- He who is in love with himself has at least this advantage -- he won't encounter many rivals. -- Georg Lichtenberg, &...
2003 Dec 03
3
checking for identical columns in a mxn matrix
...own 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 Jul 01
3
list structure question
...But is there a way to to do this directly on the list? I seem to recall a post in which there was such a function (or expression) but I just cant seem to find it. Could somebody point me in the right direction? ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Despite the high cost of living, it remains popular.
2004 Feb 26
3
saving plots as objects?
...d function which would basically work with a plot and somehow recieve mouse clicks on the plot and use identify to get the X,Y data. Does anybody know whether this has been done (or is indeed possible)? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- A beer delayed is a beer denied.
2003 Nov 18
2
sampling without repetition
...how I can get the indices into r of all the elements of, say, s1. Does anybody have any suggestions? (Of course if there is a more elegant way of doing this whole thing I would appreciate any pointers) Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- A committee is a life form with six or more legs and no brain. -- Lazarus Long, "Time Enough For Love"
2003 Oct 20
2
nnet behaving oddly
...age mentions that if the response is a factor then it defaults to quantitation. However my y matrix just contain numbers - so it should'nt be doing classification. Any pointers would be appreciated. Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Psychology is merely producing habits out of rats.
2003 Oct 28
1
stacking histograms
...alculate the mid point of each bin and use that as the label for each column - is this a valid way to represent the histogram? (This way it is easy for me to plot the histograms for the two sets together) Thanks ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <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 strictly exceeds the topological dim...
2004 Sep 15
2
efficient submatrix extraction
...if (length(which( m[ x:xend, y:yend ] > 0.7)) > 0) { bcount <- bcount + 1 } } } } Is there any way to vectorize the two inner loops? 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.
2006 Jun 19
2
frechet distance
Hi, is there any package (or source code snippet) that will evaluate the Frechet distance for curves represented as sets of points? Searching around only threw up references to a Frechet distribution. Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- If you believe in telekinesis, raise my hand.
2003 Oct 05
1
clicking on a point on a plot
...e more information regarding the point chosen - say, which vector the point was taken from. It seems that R itself does not do this - is there any code/package which would let me do something like this? Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- The emacs religion: to be saved, control excess...