Re: [R] vertically oriented color key in heatmaps

2007-08-14 Thread Rajarshi Guha
On Aug 14, 2007, at 5:11 AM, Jim Lemon wrote: Rajarshi Guha wrote: Hi, I have some data which I was plotting using image(). I wanted to add a vertical color key to the plot and I found that heatmap. 2 in gplots does let me add a color key. However, I was thinking of a vertical bar

[R] vertically oriented color key in heatmaps

2007-08-13 Thread Rajarshi Guha
. 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 [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] S4 based package giving strange error at install time, but not at check time

2007-08-09 Thread Rajarshi Guha
the package is checked. Any pointers would be appreciated. --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- Bus

Re: [R] JRI and Axis Web Service

2007-06-25 Thread Rajarshi Guha
infrastructure. --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- I'm related to people I don't relate

Re: [R] creating a list of 3 dataframes from a list of 2 dataframes and a dataframe?

2007-05-14 Thread Rajarshi Guha
),y=c(52,63,5,4)) results1 - list(a,b,c) #what I want #but this is how I need to get there temp - list(a,b) #results2 - fun?(temp2,c) # I need help here temp[[ length(temp) + 1 ]] - c results2 - temp --- Rajarshi Guha [EMAIL

Re: [R] Integrating R-programs into larger systems

2007-04-27 Thread Rajarshi Guha
/ The first two use previously built predictive models. The last one is a piece of R code. Alternatively you could use RApache --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] Scripting graph generation

2007-04-25 Thread Rajarshi Guha
as individual pages of a PDF file m - matrix(runif(100*10), nrow=10) pdf(file = 'plot.pdf') for (i in 1:nrow(m)) { plot(m[i,]) } dev.off() HTH, --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9

Re: [R] negative number to positive number

2007-04-24 Thread Rajarshi Guha
just to get a positive number. This is in a function so it's not just -5 it's x. :) abs(x) --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] Reasons to Use R

2007-04-11 Thread Rajarshi Guha
://www.omegahat.org/RSPostgres/ --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- Finally I am becoming stupider no more - Paul

Re: [R] List filtration

2007-02-22 Thread Rajarshi Guha
[!is.na(l2)] But I'm sure that more elegant solutions will be posted --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] An example of using rJava

2006-11-29 Thread Rajarshi Guha
access to the CDK cheminformatics library within R --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- A beer delayed

[R] documenting overridden methods (for S4 classes)

2006-10-29 Thread Rajarshi Guha
of the fingerprint. That is, this is the length of the entire bit string and not simply the number of bits that are on. } \arguments{ \item{x}{ An object of class \code{fingerprint} } } \value{ The length of the bit string } \keyword{logic} \keyword{methods} \author{Rajarshi Guha [EMAIL

Re: [R] java R interface

2006-08-31 Thread Rajarshi Guha
this --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- Say it with flowers - give her a triffid __ R-help

[R] list of lists to a data.frame

2006-08-18 Thread Rajarshi Guha
of lists to a data.frame where a column is represented as a vector rather than a list? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] Use R in Java

2006-08-01 Thread Rajarshi Guha
--- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- Q: What's purple and commutes? A: An abelian grape

[R] RCurl

2006-07-31 Thread Rajarshi Guha
Hi, does anybody know where I might the RCurl package - the omegahat.org server seems to be down Thanks, --- Rajarshi Guha [EMAIL PROTECTED] GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] frechet distance

2006-06-22 Thread Rajarshi Guha
request for code. However, I'm not fixated on the Frechet distance :) If there are simpler approaches I'm open to them. Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7

[R] frechet distance

2006-06-19 Thread Rajarshi Guha
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

[R] accessing a SOAP based web service from R

2006-04-26 Thread Rajarshi Guha
decode the return document and simply hand back the result, that would make life easier. Any pointers would be greatly appreciated. Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2

[R] appending objects to a file created by save()

2006-03-10 Thread Rajarshi Guha
object p. Currently I need to do: save(x,y,z,p, file='work.Rda') Is there any way to instruct save to append an object to a previously created binary data file? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG

Re: [R] R: mean from list

2006-02-12 Thread Rajarshi Guha
:-/ --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- Finally I am becoming stupider no more - Paul

[R] identifying points on a clusplot

2006-01-27 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- A mathematician is a device for turning coffee into theorems. -- P. Erdos

Re: [R] In which application areas is R used?

2006-01-23 Thread RAJARSHI GUHA
Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] suggestions for nls error: false convergence

2005-12-14 Thread Rajarshi Guha
) Any suggestions would be appreciated. Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] combining two list objects

2005-12-09 Thread Rajarshi Guha
[1] 4 [[2]]$tcorrect [1] 10 Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] reference for a fortune quote

2005-12-08 Thread Rajarshi Guha
) Was this statement made in a presentation? If so, would it be possible to get a reference for the presentation? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] the matrix of rows with specific row sums

2005-11-22 Thread Rajarshi Guha
] [,2] [,3] [,4] [1,]0010 [2,]0110 [3,]0110 --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] PNG-import into R

2005-11-21 Thread Rajarshi Guha
://blue.chem.psu.edu/~rajarshi/code/R/png.R Right now it segfaults, so its not really useful yet. --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] a question about LMS and what constitutes outliers

2005-10-06 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- After an instrument has been assembled, extra components will be found

[R] R , Java DCOM

2005-09-21 Thread Rajarshi Guha
to access R from a Java program on Windows (if it is all possible). Any pointers to documents and/or examples would be appreciated. Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04

Re: [R] Storing data frame in a RDBMS

2005-06-04 Thread Rajarshi Guha
, numeric or boolean. But its not clear to me how I would write an arbitrary object to a DB. Any pointers would be appreciated. Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04

[R] a more elegant approach to getting the majority level

2005-05-26 Thread Rajarshi Guha
) ] (The length of x will always be an odd number, so I wont get a tie in max()) Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] numerical integration of x,y data

2005-05-03 Thread Rajarshi Guha
method. Is this the package that is generally used to perform this type of integration or are there other routines available? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04

Re: [R] shading in line plots

2005-04-28 Thread Rajarshi Guha
:) --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- Breadth-first search is the bulldozer of science. -- Randy Goebel

Re: [R] Getting the row/column of matrix for some values?

2005-04-13 Thread Rajarshi Guha
) .4, arr.ind=TRUE) --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- Q: What do you get when

[R] a question about box counting

2005-04-04 Thread Rajarshi Guha
with this type of problem and are there routines to handle it? --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] a question about box counting

2005-04-04 Thread Rajarshi Guha
On Mon, 2005-04-04 at 14:22 -0400, Rajarshi Guha wrote: Hi, I have a set of x,y data points and each data point lies between (0,0) and (1,1). Of this set I have selected all those that lie in the lower triangle (of the plot of these points). What I would like to do is to divide the region

Re: [R] Vernier Caliper function vernier()

2005-04-01 Thread Rajarshi Guha
to non-decimal Vernier Calipers (change the default n=10, but I leave it to you to work out how to deal with the texts). Wow! --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7

[R] Rggobi package

2005-03-24 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] 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

Re: [R] Calling R from a non-X shell script to plot?

2004-12-13 Thread Rajarshi Guha
=plotfile, height=7, width=7) par(pch=19, col='black', cex=1.5) plot(log(1/boxsize), log(bv), ylab=log(box count), xlab=log(1/box size)) --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04

Re: [R] Calling R from a non-X shell script to plot?

2004-12-13 Thread Rajarshi Guha
, col='black', cex=1.5) plot(log(1/boxsize), log(bv), ylab=log(box count), xlab=log(1/box size)) --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] matrix of 1,0's to a data.frame of factors

2004-12-06 Thread Rajarshi Guha
- 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 [EMAIL PROTECTED] http://jijo.cjb.net GPG

Re: [R] Excel *.xls files, RODBC

2004-12-04 Thread Rajarshi Guha
On Sat, 2004-12-04 at 14:32 -0400, Rolf Turner wrote: Chuck Cleland wrote: The following works for me under WinXP Pro to create myframe as a data frame: library(RODBC) z - odbcConnectExcel(c:/myfolder/mydata.xls) myframe - sqlFetch(z, Sheet1) close(z) It would appear then,

[R] SJava 0.65 and R 2.0.0 (slightly long)

2004-10-15 Thread Rajarshi Guha
) --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- I'm related to people I don't relate to. -Calvin

Re: [R] R 2.0.0 not suffisantly reliable to be be used

2004-10-11 Thread Rajarshi Guha
the compiler met but were'nt really standard. I'm all for my code breaking with new releases if it shows me where the bugs are :) --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634

Re: [R] Dataframe manipulation question

2004-10-06 Thread Rajarshi Guha
--- Rajarshi Guha [EMAIL PROTECTED] 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

[R] Rpy vs RSPython

2004-09-30 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- I live in my own little world... but it's OK, they like

[R] fractal dimension of an image

2004-09-15 Thread Rajarshi Guha
. Any pointers would be appreciated --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- So

[R] efficient submatrix extraction

2004-09-15 Thread Rajarshi Guha
] 0.7)) 0) { bcount - bcount + 1 } } } } Is there any way to vectorize the two inner loops? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG

[R] using text on the x axis ticks rather than numbers

2004-09-07 Thread Rajarshi Guha
text labels. Ideally I would like the labels to be rotated (say at 45 degrees) so that they don't overlap with each other. Is this possible? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2

[R] N-dimensional delaunay tesselation voronoi diagrams

2004-08-31 Thread Rajarshi Guha
to provide functions for this. Does anybody know of any R packages that do this (maybe by calling on qhull)? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634

[R] list structure question

2004-07-01 Thread Rajarshi Guha
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 [EMAIL PROTECTED] http

[R] visualizing a list of probabilities

2004-06-21 Thread Rajarshi Guha
, I'd like to show the probabilities associated with each member of my prediction set? (I would rather not simply list the probabilities in a table) Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint

[R] probabilistic neural networks

2004-06-11 Thread Rajarshi Guha
networks available in R? thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- Artificial

[R] a scope problem

2004-06-10 Thread Rajarshi Guha
this would happen? (R 1.9.0 on Fedora Core 2) --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] a question regarding apply

2004-06-03 Thread Rajarshi Guha
,] and r[i] to the function. Currently I use a loop. But can this be modified to use apply (or related functions)? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9

Re: [R] column sorting a matrix with indices returned

2004-05-20 Thread Rajarshi Guha
On Thu, 2004-05-20 at 10:11, Rajarshi Guha wrote: Hi, I'm trying to translate some Matlab code to R and I'm trying to implement the behavior of Matlab's sort() which when applied to a matrix will sort the columns returning the column sorted matrix as well as a matrix of permuted indices

[R] storing binary numbers

2004-05-19 Thread Rajarshi Guha
functions to do what I need - I was wondering whether there was anything native to R for this type of thing (bitset) Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9

[R] using subscripts in a plot title with 2 lines

2004-04-19 Thread Rajarshi Guha
. Is there any way to get around this? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] question regarding vector ops

2004-04-09 Thread Rajarshi Guha
0 0 x[idx] - x[idx] +1 x [1] 1 0 0 0 0 0 0 0 0 0 I was expoecting that when all the elements of idx are set to 0, x[0] would become 11. Could somebody explain why this behavior occurs? Thanks, --- Rajarshi Guha [EMAIL PROTECTED

Re: [R] question regarding vector ops

2004-04-09 Thread Rajarshi Guha
On Fri, 2004-04-09 at 12:03, Rajarshi Guha wrote: Hi, I was playing with some code and came upon this situation. x - c(1, rep(0,9)) x [1] 1 0 0 0 0 0 0 0 0 0 idx - 1:10 x[idx] - x[idx] + 1 x [1] 2 1 1 1 1 1 1 1 1 1 This is expected. But if I do: x - c(1, rep(0,9)) x

[R] a question about scoping functions

2004-03-26 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] 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

Re: [R] R equivilant to RAND_MAX in C

2004-03-23 Thread Rajarshi Guha
On Tue, 2004-03-23 at 02:40, Prof Brian Ripley wrote: On Mon, 22 Mar 2004, Rajarshi Guha wrote: Hello, I have some C code that I'm interfacing to R using the .C calling interface. Currently the C code uses the rand() function from the GNU C library to generate random numbers. Since I

[R] R equivilant to RAND_MAX in C

2004-03-22 Thread Rajarshi Guha
()) - is this correct? As I would rather stay with the .C interface rather than the .Call interface is there a way to get random numbers within a given range? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG

Re: [R] using object reference

2004-03-03 Thread Rajarshi Guha
- ? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- COBOL is for morons. -- E.W

RE: [R] using object reference

2004-03-02 Thread Rajarshi Guha
returning the variable but it did'nt work (and it seemed less elegant than allowing the function directly modify the passed in variable) --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7

[R] some question regarding random forest

2004-03-01 Thread Rajarshi Guha
variables account for the model? Or is the interpretation of variable importance descriptive in nature? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87

[R] saving plots as objects?

2004-02-26 Thread Rajarshi Guha
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 [EMAIL PROTECTED] http://jijo.cjb.net GPG

[R] filling the area between two curves in a plot

2004-02-19 Thread Rajarshi Guha
Hi, does anybody know how I can color the area enclosed between two curves on a plot? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] How to write efficient R code

2004-02-17 Thread Rajarshi Guha
(IMO, its also more elegant to have a one line vector operation rather than a loop). Of course as I progress towards the status of R expert I hope to be able to write vectorised code on the fly :) --- Rajarshi Guha [EMAIL PROTECTED

[R] resizing a plot area when using mfrow

2004-02-16 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- C Code. C Code Run. Run, Code, RUN! PLEASE

Re: [R] resizing a plot area when using mfrow

2004-02-16 Thread Rajarshi Guha
On Mon, 2004-02-16 at 14:53, Marc Schwartz wrote: On Mon, 2004-02-16 at 12:31, Rajarshi Guha wrote: Hi, I'm trying to plot two graphs next to each other using the plot() command. I've used par(mfrow=c(1,2),pty='s') to get the plots on 1 row. However what happens is that I get

[R] variances of values predicted using a lm object

2004-02-12 Thread Rajarshi Guha
that calculating an inverse directly is not a good idea in general - could anybody suggest a way around this? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] variances of values predicted using a lm object

2004-02-12 Thread Rajarshi Guha
On Thu, 2004-02-12 at 14:50, Sundar Dorai-Raj wrote: Rajarshi Guha wrote: Hi, is there a function in R that will give me the variances of a predicted values obtained using predict.lm(). From ?predict.lm: quote Details: 'predict.lm' produces predicted values, obtained

[R] a grep/regexpr problem

2004-02-06 Thread Rajarshi Guha
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

[R] a grep/regexpr problem

2004-02-06 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- A motion to adjourn is always in order

[R] error message from regsubsets

2004-02-06 Thread Rajarshi Guha
with the error mesage. Thanks Could anybody explain what this error means? --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] a question regarding leaps

2004-01-29 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- If you believe in telekinesis, raise my hand. __ [EMAIL PROTECTED

[R] graph algorithms in R

2004-01-19 Thread Rajarshi Guha
Hi, I 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

[R] checking for identical columns in a mxn matrix

2003-12-03 Thread Rajarshi Guha
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 [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2

[R] sorting a list structure based on one of its components

2003-11-26 Thread Rajarshi Guha
Hi, is the following possible? I have a list of vectors which may be numeric or character. Is there any way I can sort all the vectors based on a certain numeric vector? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http

[R] speeding up a pairwise correlation calculation

2003-11-20 Thread Rajarshi Guha
to be expected? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- A red sign on the door

[R] using a logical vector as a mask?

2003-11-20 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- All great ideas are controversial, or have been at one time

[R] converting a numeric vector to a single string

2003-11-18 Thread Rajarshi Guha
which is what paste() gives me. I thought of using a textConnection() but as far as I can see I need to use something like writeLines which requires a character vector. Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net

[R] sampling without repetition

2003-11-17 Thread Rajarshi Guha
if there is a more elegant way of doing this whole thing I would appreciate any pointers) Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] sampling without repetition

2003-11-17 Thread Rajarshi Guha
had r - 1:300 but there is no guarantee that r will contain a consecutive sequence of numbers. --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

Re: [R] sampling without repetition

2003-11-17 Thread Rajarshi Guha
for not providing all the details. The 3 sets can be of any size (which will be specified by the user of the function) and cover all of r (ie, set1 + set2 + set3 == r) Thanks to everybody for all the solutions. --- Rajarshi Guha [EMAIL

[R] attaching data to any object

2003-11-10 Thread Rajarshi Guha
, --- Rajarshi Guha [EMAIL PROTECTED] 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

[R] shuffling a vector

2003-11-10 Thread Rajarshi Guha
help.search('shuffle') but it does'nt return anything relevant. Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] error in documentation

2003-10-24 Thread Rajarshi Guha
) is the dissimilarity between i and j --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE --- After a number

[R] changing the the column header in a data.frame

2003-10-20 Thread Rajarshi Guha
Hi, is there any way I can change the column header in a data.frame? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] general genetic algorithm / simulated annealing framework

2003-10-10 Thread Rajarshi Guha
available that provides the basic framework of a GA/SA into which I could basically plug an objective function (which might actually be a regresion routine or a NN routine) Thanks --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net

Re: [R] Getting rows from a dataframe

2003-10-09 Thread Rajarshi Guha
is your data.frame then d[ 1, ] will give all the columns coresponding to row 1 in a data.frame d - read.table('data') class(d) [1] data.frame x - d[1,] class(x) [1] data.frame HTH --- Rajarshi Guha [EMAIL PROTECTED] http

[R] vif() from Design and car

2003-10-06 Thread Rajarshi Guha
of the model). What is the difference between the two vif functions? (I dont have access to the reference in the Design's vif() help page) Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04

[R] clicking on a point on a plot

2003-10-05 Thread Rajarshi Guha
- 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 [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint

Re: [R] clicking on a point on a plot

2003-10-05 Thread Rajarshi Guha
this program as well as the people on this list for the support!! --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] allocating memory in a C module

2003-10-03 Thread Rajarshi Guha
distro (or if anybody has some similar code that I could look at)? Any pointers would be appreciated, thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] More questions about R extension programming

2003-10-03 Thread Rajarshi Guha
On Fri, 2003-10-03 at 17:01, Rajarshi Guha wrote: Hi, I'm using a package that has a number of formats. I have C code to parse these formats the results of which are generally integer arrays. I would like to utilize these modules in R rather than writing R code to read in these files

[R] using a string as the formula in rlm

2003-10-02 Thread Rajarshi Guha
this method results in the error but is there any way to get around this? Thanks, --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

[R] serializing R objects

2003-10-02 Thread Rajarshi Guha
Hi, is there any way that an R object (say a list of rlm models) could be serialized to disk to be read in at a later time? --- Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9

  1   2   >