Re: [R] Embarrassingly naive question regarding graphics on Mac OS X

2004-07-03 Thread Ulises Mora Alvarez
Hi, Mathew! Once you are done with your graphic dev.copy2eps(file="some_name.eps") If you/like another format, take a look at ?dev.copy Regards. On Sat, 3 Jul 2004, Matthew Cohen wrote: > I am having trouble saving graphs. Using the Aqua interface (which is not > my preferred interface),

[R] Use of nnet() with package SNOW ?

2004-07-03 Thread Ron Piccinini
Hello R masteRs, I am trying to train a neural network whose training set is about 910,000 rows by 5 columns. I am running R on a small cluster of 8 machines (7 slaves) using the SNOW package. Is there a smart way to use all 8 processors to train the neural net? or am I just better off putting all

[R] the commands to easily find the dual variables of a standard LP problem

2004-07-03 Thread Yong Wang
Dear all I use "simplex" to resolve a standard LP problem, further, I want to know the dual variables of the LP problem (the dual variables when the standard LP ,or the primal problem, get its optimal solution). Is there any command for me to easily get them(the dual variables)? any suggestion

[R] Embarrassingly naive question regarding graphics on Mac OS X

2004-07-03 Thread Matthew Cohen
I am having trouble saving graphs. Using the Aqua interface (which is not my preferred interface), I have no problems plotting a graph, adding additional lines, points, references, etc., and then saving it to a file using, for example, the dev2bitmap command. I have found that, running R with Xem

[R] recommended citation

2004-07-03 Thread Lumir Gvozdik
Dear Sirs, I used the nlme package for the statistical analysis of my data for prepared MS. Please, can you write me what is your recommended form of citation of this program? Thanks in advance for your reply. Sincerely, Lumir Gvozdik __ [EMAIL PROTECT

[R] graphic representation of a qda object

2004-07-03 Thread Robin Gruna
Hi, I'm a R newbie and I have a supervised 2-class classification problem. To find out the best representation of my data (dim = 45). I want to perform LDA und QDA on the diffrent data representations to find out, which is best to discriminate the 2 sets. For LDA there exists a method plot.lda sh

Re: [R] options --- na.rm , save-on-exit

2004-07-03 Thread Prof Brian Ripley
On Sat, 3 Jul 2004, Spencer Graves wrote: > I presume by "no" Uwe means that there is apparently nothing as > simple as changing "na.rm" to TRUE in "options". > > However, you could redefine the functions "mean" and "median" so > the default was "na.rm=TRUE". That's easy to do wit

Re: [R] options --- na.rm , save-on-exit

2004-07-03 Thread Prof Brian Ripley
On Sat, 3 Jul 2004 [EMAIL PROTECTED] wrote: > [b] options(?): how do I get R to not prompt me for saving the > workspace upon exit, but to instead automatically save the command > history .Rhistory but not the data .RData ? The first is in the appendix to An Introduction to R: --no-save etc. F

Re: [R] Recoding scores of negatively worded item

2004-07-03 Thread a . prioglio
On Sat, Jul 03, 2004 at 12:17:11PM -0400, Jonathan Baron wrote: > >b) why there is a different behavior from the command line and from a > >script? > > Could the problem be on the line before the one that gives the error? I guess I discovered what was the issue ( I knew it was something silly) I

Re: [R] Recoding scores of negatively worded item

2004-07-03 Thread Gabor Grothendieck
Jonathan Baron psych.upenn.edu> writes: : ces$score <- ifelse(ces$question %in% c(1,3,5),5-ces$score,ces$score) One minor improvement in readability might be: ces$score <- with(ces, ifelse(question %in% c(1,3,5), 5-score, score)) __ [EMAIL PROTECTED

Re: [R] options --- na.rm , save-on-exit

2004-07-03 Thread Spencer Graves
I presume by "no" Uwe means that there is apparently nothing as simple as changing "na.rm" to TRUE in "options". However, you could redefine the functions "mean" and "median" so the default was "na.rm=TRUE". That's easy to do with median: Type "median" at a command prompt, copy the

Re: [R] Recoding scores of negatively worded item

2004-07-03 Thread Jonathan Baron
On 07/03/04 16:45, [EMAIL PROTECTED] wrote: >Hi, > >I'm new to R so please fogive if I write someting silly ... > >I need to recode a series of responses from a number of questionnaires. > >The data is read via ODBC from a database where all responses are coded >as tables of the form (id, question,

Re: [R] options --- na.rm , save-on-exit

2004-07-03 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: dear R wizzards: two options() related questions. [a] options(na.action): many of my variables have missing variables, so I would like to set a default to ignore, especially in univariate functions like mean() and median() . alas, without na.rm=T in the functions them

Re: [R] counting the occurrences of vectors

2004-07-03 Thread Gabor Grothendieck
Ravi Varadhan jhsph.edu> writes: > Hi: > > I have two matrices, A and B, where A is n x k, and B is m x k, where n >> m >> k. Is there a computationally fast way to > count the number of times each row (a k-vector) of B occurs in A? Thanks for any suggestions. > > Best, > Ravi. Here are t

Re: [R] counting the occurrences of vectors

2004-07-03 Thread Marc Schwartz
On Sat, 2004-07-03 at 09:31, Ravi Varadhan wrote: > Hi: > > I have two matrices, A and B, where A is n x k, and B is m x k, where > n >> m >> k. Is there a computationally fast way to count the number > of times each row (a k-vector) of B occurs in A? Thanks for any > suggestions. > > Best, >

[R] Recoding scores of negatively worded item

2004-07-03 Thread a . prioglio
Hi, I'm new to R so please fogive if I write someting silly ... I need to recode a series of responses from a number of questionnaires. The data is read via ODBC from a database where all responses are coded as tables of the form (id, question, score). After dealing with recoding of missing val

[R] options --- na.rm , save-on-exit

2004-07-03 Thread ivo_welch-rstat8783
dear R wizzards: two options() related questions. [a] options(na.action): many of my variables have missing variables, so I would like to set a default to ignore, especially in univariate functions like mean() and median() . alas, without na.rm=T in the functions themselves, I always get an N

Re: [R] counting the occurrences of vectors

2004-07-03 Thread Spencer Graves
What have you tried? Have you considered something like the following: n <- 4 m <- 3 k <- 2 A <- array(1, dim=c(n, k)) B <- array(1, dim=c(m,k)) BinA <- rep(NA, m) tA <- t(A) for(i in 1:m){ BinA[i] <- sum(apply(B[i,]==tA, 2, sum)==k) } > BinA [1] 4 4 4 hope this helps. spencer grave

[R] counting the occurrences of vectors

2004-07-03 Thread Ravi Varadhan
Hi: I have two matrices, A and B, where A is n x k, and B is m x k, where n >> m >> k. Is there a computationally fast way to count the number of times each row (a k-vector) of B occurs in A? Thanks for any suggestions. Best, Ravi. [[alternative HTML version deleted]] ___

Re: [R] How to get the normal direction to a plane?

2004-07-03 Thread Douglas Bates
Fred wrote: Dear All Maybe the following is a stupid question. Assume I have 3 coordinate points (not limited to be in 2D or 3D space) a, b, c. It is known that these 3 points will define a plane. The problem is how to get the normal direction that is orthogonal to this plane. Is there an easy

Re: [R] Re: RMySQL

2004-07-03 Thread Uwe Ligges
Talita Leite wrote: Hi! I'm installing on windows XP and the version of the package is RMySQL_0.5-3. About the errors...when I try to read the package on R I get this: Error in load(dataFile, myEnv) : unused argument(s) ( ...) Error in library(pkg, character.only = TRUE) : .First.lib failed