Re: [R] Zero Index Origin?

2004-03-31 Thread Peter Wolf
Richard A. O'Keefe wrote: It would be interesting to see some sample code where origin 0 is supposed to make life easier, ... An application is the implementation of algorithms which use origin 0 and are written in pseudo code. Write down the statements in R syntax, include some print or browser

Re: [R] New utility: sas2r

2004-03-31 Thread Gabor Grothendieck
Bob Cain arcanemethods.com> writes: > > Rolf Poalis wrote: > > > Dear R users, > > > > Biostatistics Denmark would like to annouce the availability of the > > new utility: sas2R --- a SAS to R parser. > > Has this been done by anyone for Matlab? > > Bob Don't know about that but at the bot

Re: [R] Zero Index Origin?

2004-03-31 Thread Gabor Grothendieck
Bob Cain arcanemethods.com> writes: > A question I have from my very limited > understanding yet of OO is whether such objects could be > passed to legacy functions with any expectation of correct > results. Typically you need to write a wrapper but sometimes you get it for free. For example, i

[R] [R-pkgs] energy 1.0.1

2004-03-31 Thread Gabor Szekely
R Users, We would like to announce that Version 1.0.1 of the energy package is now available on CRAN. The energy package introduces a new class of statistical tests based on the concept of Newton's potential energy. Included in the package are * mvnorm.etest (test) and mvnorm.e (statistic)

Re: [R] Zero Index Origin?

2004-03-31 Thread Bob Cain
Richard A. O'Keefe wrote: It would be interesting to see some sample code where origin 0 is supposed to make life easier, and to see what R experts to do make it even easier than that. I think I will try and invite Robert Bristow Johnson into this discussion. He's one of the most respected voic

Re: [R] Zero Index Origin?

2004-03-31 Thread Bob Cain
Gabor Grothendieck wrote: [snip good stuff] Of course the above is motherhood and some specific examples might put a sharper edge to the discussion. I really appreciate your point of view on this and think you are probably right. A question I have from my very limited understanding yet of OO i

Re: [R] New utility: sas2r

2004-03-31 Thread Bob Cain
Rolf Poalis wrote: Dear R users, Biostatistics Denmark would like to annouce the availability of the new utility: sas2R --- a SAS to R parser. Has this been done by anyone for Matlab? Bob -- "Things should be described as simply as possible, but no simpler."

[R] New utility: sas2r

2004-03-31 Thread Rolf Poalis
Dear R users, Biostatistics Denmark would like to annouce the availability of the new utility: sas2R --- a SAS to R parser. For almost 40 years SAS has been the primary tool for statisticians worldwide and its easy-to-learn syntax, unsurpassed graphical system, powerful macro language and recent

Re: [R] row selection based on median in data frame

2004-03-31 Thread Ed L Cashin
Ed L Cashin <[EMAIL PROTECTED]> writes: > Ed L Cashin <[EMAIL PROTECTED]> writes: > >> Hi. I am having trouble thinking of an easy way to grab rows out of a >> data frame. I want to select the rows with a median value when the >> rows are similar. > > I'm still catching up on my R list reading,

Re: [R] Zero Index Origin?

2004-03-31 Thread Gabor Grothendieck
Bob Cain arcanemethods.com> writes: ... zero origin ... It occurred to me that perhaps the point about classes could be framed somewhat differently. I think you have an implicit assumption that vectors, matrices and arrays in general should be used to represent the objects that you are intereste

Re: [R] row selection based on median in data frame

2004-03-31 Thread Ed L Cashin
Ed L Cashin <[EMAIL PROTECTED]> writes: > Hi. I am having trouble thinking of an easy way to grab rows out of a > data frame. I want to select the rows with a median value when the > rows are similar. I'm still catching up on my R list reading, and I notice there is a similar post to mine:

[R] row selection based on median in data frame

2004-03-31 Thread Ed L Cashin
Hi. I am having trouble thinking of an easy way to grab rows out of a data frame. I want to select the rows with a median value when the rows are similar. A simple example is this table, which I could read into a data frame. I would like to find a new data frame with only the rows with a median

Re: [R] Zero Index Origin?

2004-03-31 Thread Richard A. O'Keefe
I note that (1) "[" is a class-based function in R, so it would be possible to define a class of zero-origin arrays. This would mean that indexing these things would be quite incompatible with all the other indexing in R, so it's not clear that it would be a good thing. (2) R lets you define "lef

Re: [R] Zero Index Origin?

2004-03-31 Thread Bob Cain
Peter Dalgaard wrote: I think it was said quite early in the thread, but since noone apparently listened, let me reiterate: One of the powerful indexing features in R is the negative index ("all, except") and x[-0] would lead to some complications if 0 was a true index. Interesting. The kind

RE: [R] identify() and controlling label size

2004-03-31 Thread Hanke, Alex
Thank-you it works! I have ignored ps and relied on the cex arguments until now. Alex -Original Message- From: Barry Rowlingson [mailto:[EMAIL PROTECTED] Sent: March 31, 2004 10:59 AM To: Hanke, Alex Cc: '[EMAIL PROTECTED]' Subject: Re: [R] identify() and controlling label size Hanke, A

Re: [R] Is there a package or routine for calculating mimimum spanning trees?

2004-03-31 Thread Peter Dalgaard
Stephane DRAY <[EMAIL PROTECTED]> writes: > see mst in package ace *** ape, I believe... -- O__ Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark

Re: [R] functions & paths

2004-03-31 Thread Peter Dalgaard
Don MacQueen <[EMAIL PROTECTED]> writes: > At 5:28 PM -0500 3/31/04, Kissell, Robert [EQRE] wrote: > >Hi, > >I have a couple of quick questions regarding R. > > > > <- snip -> > > > 3) Is there anyway that I could save functions that I have written > > outside of R. That is, could I write functi

Re: [R] Zero Index Origin?

2004-03-31 Thread Peter Dalgaard
Bob Cain <[EMAIL PROTECTED]> writes: > Jason Turner wrote: > > > > I do some DSP work, in the context of instrumentation signal filtering, > > identification, tracking, and coherence (finding plant signals that have > > similar "fingerprints"). I agree that in languages that require you to > >

Re: [R] How to cluster the variables instead of data points?

2004-03-31 Thread Jason Turner
> Do you know if there are some specific functions under R > to do clustering? > To be specific, I have a d-dimensional vector x, and wish > to clustering these d variables of x into some finite groups > given self-defined distance measure. Not sure what you want, as the above could be interpreted

Re: [R] functions & paths

2004-03-31 Thread Don MacQueen
At 5:28 PM -0500 3/31/04, Kissell, Robert [EQRE] wrote: Hi, I have a couple of quick questions regarding R. <- snip -> 3) Is there anyway that I could save functions that I have written outside of R. That is, could I write functions and have them saved in some directory, such as, C:\Programs\RLa

[R] How to cluster the variables instead of data points?

2004-03-31 Thread Feng Zhang
Dear R users, Do you know if there are some specific functions under R to do clustering? To be specific, I have a d-dimensional vector x, and wish to clustering these d variables of x into some finite groups given self-defined distance measure. So please offer me some point on this problem. Than

Re: [R] Is there a package or routine for calculating mimimum spanning trees?

2004-03-31 Thread Stephane DRAY
see mst in package ace At 17:54 31/03/2004, Briggs, Meredith M wrote: __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Stéphane DRAY ---

Re: [R] functions & paths

2004-03-31 Thread Dirk Eddelbuettel
Rob, On Wed, Mar 31, 2004 at 05:28:19PM -0500, Kissell, Robert [EQRE] wrote: > 1) I have a ".First" function that automatically loads the quadprog package into the > workspace. The .First function resides in R and is only saved if I save the > workspace. The exact function is as follows: [...]

Re: [R] Zero Index Origin?

2004-03-31 Thread Gabor Grothendieck
Bob Cain wrote: : Jason Turner wrote: : : > However, I'd like to second Prof. Ripley's remark that if you're actually : > using indicies explicitly, you probably haven't wrapped your head around : > how powerful the indexing structure and "whole object" approach is in S : > (including R). It's

[R] Gauss user question

2004-03-31 Thread Oleg Urminsky
I have been using Gauss for doing maximum likelihood estimation of somewhat complex models, and I am possibly interested in moving over to R. Does anyone have experience doing both? My main concern is that my models are very slow to estimate in Gauss; wondering if R is likely to be faster or

[R] Is there a package or routine for calculating mimimum spanning trees?

2004-03-31 Thread Briggs, Meredith M
__ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Zero Index Origin?

2004-03-31 Thread Bob Cain
Jason Turner wrote: I do some DSP work, in the context of instrumentation signal filtering, identification, tracking, and coherence (finding plant signals that have similar "fingerprints"). I agree that in languages that require you to work with explicit index values, the zero-offset makes per

[R] functions & paths

2004-03-31 Thread Kissell, Robert [EQRE]
Hi, I have a couple of quick questions regarding R. 1) I have a ".First" function that automatically loads the quadprog package into the workspace. The .First function resides in R and is only saved if I save the workspace. The exact function is as follows: .First<-function() { library

Re: [R] Zero Index Origin?

2004-03-31 Thread Jason Turner
> I don't really wish to go into all of the reasoning why this > convenience is important to DSP applications. I do some DSP work, in the context of instrumentation signal filtering, identification, tracking, and coherence (finding plant signals that have similar "fingerprints"). I agree that in

Re: [R] Zero Index Origin?

2004-03-31 Thread Bob Cain
Thanks for the input. I'm new to classes and object orientation as well as to R and was sorta hoping to hear that a solution might exist within that structure. Would existing functions be able to deal with such objects and see them as the 1 origin objects that they expect? A solution to backward

Re: [R] corrupted ASCII file; was: (no subject)

2004-03-31 Thread Uwe Ligges
Nicole Soranzo wrote: > > Hi, I wonder if you can help me: > > I cannot seem to be able to import my data anymore. When I try to import > the attached file with the string > > FunctRes<-read.table("C:/Documents and Settings/FunctRes.txt", header=FALSE) > > I obtain: > > > FunctRes > V1

Re: [R] scan seems to modify the data

2004-03-31 Thread DJNordlund
Stéphane, in the example below which you are concerned about, the large correlation you see is not a result of the small variance, but rather the 3 random numbers you generated just happened to have the same rank ordering as the magnitudes of the three coefficients you were correlating them wit

Re: [R] scan seems to modify the data

2004-03-31 Thread Uwe Ligges
Stephane DRAY wrote: > > Hello list, > I have used scan function to import data into R. I have done some analysis > and find strange results. I have found my problem : when importing data > with scan, this can slightly modify the data : > > > write(c(0.251,3.399,-0.481,0.266),"essai.txt") > >

Re: [R] Zero Index Origin?

2004-03-31 Thread kjetil
On 31 Mar 2004 at 14:38, Barry Rowlingson wrote: > Gabor Grothendieck wrote: > > If you are willing to do it yourself you can define a class > > for which indexing behaves that way. > > I'd like to prefix all these solutions with "Here's how to do it, > but > don't actually do it you crazy

Re: [R] ARCH GARCH

2004-03-31 Thread kjetil
On 31 Mar 2004 at 20:07, [EMAIL PROTECTED] wrote: > i'm looking for an R library dealing with ARCH and GARCH models > help.search("ARCH") on my system gives among others: garch-methods(tseries) Methods for Fitted GARCH Models garch(tseries) Fit GARCH Models to Time Serie

RE: [R] Zero Index Origin?

2004-03-31 Thread John Fox
Dear Baz, I'm inclined to believe that your general advice is correct. As a long-time APLer who came to R through Lisp-Stat, I think that it's generally a good idea not to resist the most natural way of programming in R. On the other hand, introducing a new class and defining methods for it (such

Re: [R] extracting values from a 3d array using a matrix from indices

2004-03-31 Thread Gabor Grothendieck
1. Create a matrix A.list each of whose i,j-th entries is a one element list containing A[i,,j]. Note that A.list and B have the same lengths so we can use mapply. With mapply, we can choose the B[k]-th element from the list represented by A.list[k]. Finally reshape. # test data A <- array(1:8,

RE: [R] help with the usage of "randomForest"

2004-03-31 Thread Liaw, Andy
As you've learned, using the formula interface, the NAs are handled by na.action. (BTW, the R default is na.omit, so the NAs are silently omitted. If it were na.fail, you would have gotten an error message.) There are several options on handling NAs, na.omit being one of them. If you have too ma

[R] classification with nnet: handling unequal class sizes

2004-03-31 Thread Christoph Lehmann
Dear Prof. Ripley Since you are the creator of the MASS library I dare to ask you a short question, for which I didn't get an answer from the R mailing-list. If you feel disturbed by my question, please forgive me and just ignore my mail. I use the nnet code from your book, V&R p. 348: The very

Re: [R] scan seems to modify the data

2004-03-31 Thread Prof Brian Ripley
Note, digits in print() corresponds to signif and not to round. You need to input some knowledge about your problem to call such issues. On Wed, 31 Mar 2004, Stephane DRAY wrote: > At 13:34 31/03/2004, Prof Brian Ripley wrote: > > >Take a look at formatReal. scientific thinks 0.251 has 17 digi

Re: [R] scan seems to modify the data

2004-03-31 Thread Stephane DRAY
At 13:34 31/03/2004, Prof Brian Ripley wrote: Take a look at formatReal. scientific thinks 0.251 has 17 digits and 0.255 has 3. It really doesn't make any sense to ask for more precision than you have (.Machine$double.eps) and you do often get spurious errors if you attempt to do so. So 15 digi

RE: [R] array addition doesn't recycle!

2004-03-31 Thread Raubertas, Richard
Another alternative is to use the underappreciated function 'sweep()': sweep(A, 1:2, a, "+") Internally this is about the same as your 'A + array(a, c(2,2,2))'. But it has the advantage that it makes explicit what the relationship between the dimensions of 'A' and 'a' is. I find that relying

Re: [R] scan seems to modify the data

2004-03-31 Thread Prof Brian Ripley
On 31 Mar 2004, Peter Dalgaard wrote: > Duncan Murdoch <[EMAIL PROTECTED]> writes: > > > > print(x,17) > > [1] 0.26601 0.25100 > ... > > > print(x,17) > > [1] 0.266 > > > > I don't know why the second print() prints 0.266 differently from the > > first one. (This is in t

[R] ARCH GARCH

2004-03-31 Thread pnick
i'm looking for an R library dealing with ARCH and GARCH models __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] (kein Betreff)

2004-03-31 Thread Pedro Rodrigues
On Wed, 2004-03-31 at 19:01, Mag. Ferri Leberl wrote: > Dear colleagues! > > How can I calculate the mean of every line of "feld" without using the command > "for"? > > Thank You in advance > > > feld<-array(,c(100,10)) > mittel<-array(,c(100,1)) > feld[,]<-rnorm(1000) > for(a in 1:100){mittel

Re: [R] (kein Betreff)

2004-03-31 Thread Sundar Dorai-Raj
Mag. Ferri Leberl wrote: Dear colleagues! How can I calculate the mean of every line of "feld" without using the command "for"? Thank You in advance feld<-array(,c(100,10)) mittel<-array(,c(100,1)) feld[,]<-rnorm(1000) for(a in 1:100){mittel[a]<-mean(feld[a,])} (please use an informative subj

Re: [R] scan seems to modify the data

2004-03-31 Thread Prof Brian Ripley
On Wed, 31 Mar 2004, Duncan Murdoch wrote: > On Wed, 31 Mar 2004 12:24:38 -0500, Stephane DRAY > <[EMAIL PROTECTED]> wrote : > > >Hello list, > >I have used scan function to import data into R. I have done some analysis > >and find strange results. I have found my problem : when importing data

Re: [R] scan seems to modify the data

2004-03-31 Thread Peter Dalgaard
Duncan Murdoch <[EMAIL PROTECTED]> writes: > > print(x,17) > [1] 0.26601 0.25100 ... > > print(x,17) > [1] 0.266 > > I don't know why the second print() prints 0.266 differently from the > first one. (This is in the 1.9.0 beta in Windows). To get the same number of decim

[R] (kein Betreff)

2004-03-31 Thread Mag. Ferri Leberl
Dear colleagues! How can I calculate the mean of every line of "feld" without using the command "for"? Thank You in advance feld<-array(,c(100,10)) mittel<-array(,c(100,1)) feld[,]<-rnorm(1000) for(a in 1:100){mittel[a]<-mean(feld[a,])} __ [EMAIL PR

Re: [R] scan seems to modify the data

2004-03-31 Thread Duncan Murdoch
On Wed, 31 Mar 2004 12:24:38 -0500, Stephane DRAY <[EMAIL PROTECTED]> wrote : >Hello list, >I have used scan function to import data into R. I have done some analysis >and find strange results. I have found my problem : when importing data >with scan, this can slightly modify the data : > > > wr

Re: [R] help with the usage of "randomForest"

2004-03-31 Thread Peter Dalgaard
Hui Han <[EMAIL PROTECTED]> writes: > Thinking that the following suggestions by Matt may be helpful to others, > I am fowarding his notes to R-list. > On Wed, Mar 31, 2004 at 08:57:13AM -0800, Austin, Matt wrote: > > Use na.action=na.omit in your function call to delete those rows, but this >

Re: [R] (no subject)

2004-03-31 Thread Duncan Murdoch
On 31 Mar 2004 19:22:30 +0200, Peter Dalgaard <[EMAIL PROTECTED]> wrote : >Nicole Soranzo <[EMAIL PROTECTED]> writes: > >> I cannot seem to be able to import my data anymore. When I try to >> import the attached file with the string >> >> FunctRes<-read.table("C:/Documents and Settings/FunctRes.t

[R] scan seems to modify the data

2004-03-31 Thread Stephane DRAY
Hello list, I have used scan function to import data into R. I have done some analysis and find strange results. I have found my problem : when importing data with scan, this can slightly modify the data : > write(c(0.251,3.399,-0.481,0.266),"essai.txt") > scan("essai.txt") Read 4 items [1] 0.2

Re: [R] (no subject)

2004-03-31 Thread Peter Dalgaard
Nicole Soranzo <[EMAIL PROTECTED]> writes: > I cannot seem to be able to import my data anymore. When I try to > import the attached file with the string > > FunctRes<-read.table("C:/Documents and Settings/FunctRes.txt", header=FALSE) > > I obtain: > > > FunctRes > V1 > 1 ÿþC ... > > Ca

Re: [R] help with the usage of "randomForest"

2004-03-31 Thread Hui Han
Thinking that the following suggestions by Matt may be helpful to others, I am fowarding his notes to R-list. Regards, Hui On Wed, Mar 31, 2004 at 08:57:13AM -0800, Austin, Matt wrote: > Use na.action=na.omit in your function call to delete those rows, but this > can give you problems if you want

[R] (no subject)

2004-03-31 Thread Nicole Soranzo
Hi, I wonder if you can help me: I cannot seem to be able to import my data anymore. When I try to import the attached file with the string FunctRes<-read.table("C:/Documents and Settings/FunctRes.txt", header=FALSE) I obtain: > FunctRes V1 1 ÿþC 2 \n 3C 40 50 6B 7 \n

Re: [R] help with the usage of "randomForest"

2004-03-31 Thread Hui Han
Thanks for Matt and Torsten for very helpful suggestions! As Matt pointed out, the problem is that na.action has the default value of na.fail, that deleted one class samples. I changed all NAs to real values, and the error msg. dissappeared. However my real dataset contains many NAs. I wonder if

Re: [R] help with the usage of "randomForest"

2004-03-31 Thread Torsten Hothorn
On Wed, 31 Mar 2004, Hui Han wrote: > Dear all, > > Can anybody give me some hint on the following error msg I got with using > randomForest? > > I have two-class classification problem. The data file "sample" is: > -- > udomain.edu udomain.

[R] Please confirm your subscription.

2004-03-31 Thread 'I DESIRE' Success
Hi , It's 'I DESIRE' Success writing you to confirm your subscription to our mailing list. You can confirm your subscription by simply clicking the link below: https://www.mcssl.com/app/optin.asp?j=0&c=18836264&pg=das&nc=1 If you received this message in error, or do not wish to be inc

[R] array addition doesn't recycle!

2004-03-31 Thread Tamas Papp
Hi, I have noticed the following: > a <- array(1:4, c(2, 2)) > A <- array(1:4, c(2,2,2)) > A + a Error in A + a : non-conformable arrays It works with a matrix + a vector, why doesn't it work with arrays? Am I missing something? How would you do the above operation efficiently (ie I need to add

Re: [R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread dsheuman
Thanks to Marc, J.R. and Sean for your help. I didn't realize that the paste command was where I should be looking. Danny __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://

Re: [R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread Marc Schwartz
On Wed, 2004-03-31 at 08:44, [EMAIL PROTECTED] wrote: > Hi all, > > I'm running the following code to generate 40 different jpegs based on > the resulting data. I'd like the file names to be 'Cluster1.jpeg', > however the code write filenames like 'Cluster 1 .jpeg'. > > How can I get rid of the

RE: [R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread Simon Fear
I believe all you need to do here is use plain "i" instead of "format(i)" in the jpeg call. Someone is bound to come up with a better generic answer but this should get you up and running for now. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 31 March 2

Re: [R] array addition doesn't recycle!

2004-03-31 Thread Prof Brian Ripley
The recycling rules are documented and this is not amongst them. Computer packages do have a tendency to follow their rules rather than read your mind. I suspect A + as.vector(a) is what you intended. On Wed, 31 Mar 2004, Tamas Papp wrote: > Hi, > > I have noticed the following: > > > a <- ar

Re: [R] identify() and controlling label size

2004-03-31 Thread Barry Rowlingson
Hanke, Alex wrote: I thought this was going to be easy ... Can the label size of identify() be controlled by setting par(cex.*) because I'm having no luck? My only recourse is to save the index and position of the labels from identify() and use text() to replot them. Funny, it seems to ignore that

[R] extracting values from a 3d array using a matrix from indices

2004-03-31 Thread Tamas Papp
Suppose I have A, an n x m matrix, each element is an integer (an index). I also have B, an n x l x m array. I need C, where C[n,m] = B[n, A[n, m], m] I am currently using loops, what would be the "R way" to do this? Another question: let A[n, m] <- argmax_l B[n, l, m] what would be the nice

Re: [R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread Sean Davis
Danny, Paste uses sep=" " between arguments as a default. Just include sep="" in the paste call. file=paste("c:\\temp\\cluster",format(i),".jpeg",sep="") Sean On 3/31/04 9:44 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm running the following code to generate 40 differ

[R] identify() and controlling label size

2004-03-31 Thread Hanke, Alex
I thought this was going to be easy ... Can the label size of identify() be controlled by setting par(cex.*) because I'm having no luck? My only recourse is to save the index and position of the labels from identify() and use text() to replot them. Regards Alex Alex Hanke Department of Fisheries

[R] Removing leading and trailing spaces (string manipulation)

2004-03-31 Thread dsheuman
Hi all, I'm running the following code to generate 40 different jpegs based on the resulting data. I'd like the file names to be 'Cluster1.jpeg', however the code write filenames like 'Cluster 1 .jpeg'. How can I get rid of the unwanted spaces? I've looked at ?format and it doesn't seem to w

Re: [R] Failure to compile source packages in Debian

2004-03-31 Thread Dirk Eddelbuettel
On Wed, Mar 31, 2004 at 09:15:24AM +0200, F. Tusell wrote: > > As of quite recently I experience failures to compile source packages. > Messages like > > * Installing *source* package 'dse1' ... > ** libs > g77 -mieee-fp -fPIC -g -O2 -c dsefor.f -o dsefor.o > gcc -shared -o dse1.so dsefor.o

Re: [R] Zero Index Origin?

2004-03-31 Thread Barry Rowlingson
Gabor Grothendieck wrote: If you are willing to do it yourself you can define a class for which indexing behaves that way. I'd like to prefix all these solutions with "Here's how to do it, but don't actually do it you crazy fool". It's on a par with redefining pi, or redefining '+'. And then re

[R] help with the usage of "randomForest"

2004-03-31 Thread Hui Han
Dear all, Can anybody give me some hint on the following error msg I got with using randomForest? I have two-class classification problem. The data file "sample" is: -- udomain.edu udomain.hcs hpclass 1 1. 1 not 2 NA 2 not 3 NA 0.8 not

RE: [R] Aggregating frequency of irregular time series

2004-03-31 Thread Whit Armstrong
You are quite right. One can see from the original function I wrote that I am not very familiar with the apply family. Thanks for pointing out this improvement. Below is the new version of the function; any other comments are welcome. Regards, Whit Timebase <- function(x,monthly=T,first.day=T)

RE: [R] choice-based conjoint

2004-03-31 Thread stephen . kay
The multinomial model can be used- it's the standard method used, although there are now more sophisticated ones - see Kenneth Train's website at Berkley for the Mixed Logit. I too am new to R so can't really comment on how to implement it in this package. If you want to run more sophisticated mode

Re: [R] choice-based conjoint

2004-03-31 Thread Jonathan Baron
Not quite an answer. I've been using ace() in the acepack library to do _ordinary_ conjoint analysis with rating responses. I never do (nor have any reason to do) choice-based conjoint, so I haven't thought about how to analyze such data, but I'd be interested in the answer if anyone has it. (Wha

Re: [R] Zero Index Origin?

2004-03-31 Thread Gabor Grothendieck
If you are willing to do it yourself you can define a class for which indexing behaves that way. For example, here is a start for a limited implementation for vectors. The first statement defines the constructor, the second defines [, the third converts an index 0 based vector back to a regular

RE: [R] Zero Index Origin?

2004-03-31 Thread John Fox
Dear Bob, One approach would be to introduce a class of objects for which zero-based indexing is implemented. Here's a simple example: > "[.io0" <- function(x, i) as.vector(x)[i + 1] > > v <- 0:10 > class(v) <- "io0" > v[0] [1] 0 > v[0:5] [1] 0 1 2 3 4 5 > Of course, a serious implementation w

[R] choice-based conjoint

2004-03-31 Thread Felix Eggers
Hello everyone, I am new to this list and the R-Project, so I hope my question is not trivial or has been answered before. I searched the FAQs and the mailing list archives and I could not find anything about Conjoint Analysis. I am especially interested in Choice-based Conjoint, resp. discrete ch

RE: [R] as.environment() does not work for "package:base"?

2004-03-31 Thread Prof Brian Ripley
On Wed, 31 Mar 2004, Philippe Grosjean wrote: > OK. Thank you. I have not seen that particularity in the documentation... is > it written somewhere? Yes, the source code if nowhere else. > However, I found: > > .BaseNamespaceEnv > > > which is, according to the documentation, still experimenta

RE: [R] Can R be useful to me?

2004-03-31 Thread Luiz Rodrigo Tozzi
wow! this R is real awesome! thanks all of you. i'll start the tutorial and manual reading right now tks! ><> ><> ><> ><> ><> ><> ><> Luiz Rodrigo L. Tozzi METOP -- CPTEC/INPE [EMAIL PROTECTED] ICQ: 3276578 TEL: (12)31868419 ><> ><> ><> ><> ><> ><> ><> Deus nunca fica e

RE: [R] as.environment() does not work for "package:base"?

2004-03-31 Thread Philippe Grosjean
OK. Thank you. I have not seen that particularity in the documentation... is it written somewhere? However, I found: > .BaseNamespaceEnv which is, according to the documentation, still experimental. Should I better use envir = NULL or .BaseNamespaceEnv to get a full control on objects in the base

Re: [R] Zero Index Origin?

2004-03-31 Thread Jim Lemon
Hi Bob, Jonathan Rougier's Oarray package might be what you want. Jim __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Can R be useful to me?

2004-03-31 Thread Duncan Murdoch
On Wed, 31 Mar 2004 08:32:49 -0300, you wrote: >My question is: can I generate graphics and tables in gif ou any graphical >format through shell script?? can I call R, run a package in my ascii data e >then export the results to a gif, png or whatever? > >Depending on your answers I'll learn R

Re: [R] Can R be useful to me?

2004-03-31 Thread Philipp Pagel
On Wed, Mar 31, 2004 at 08:32:49AM -0300, Luiz Rodrigo Tozzi wrote: > > My question is: can I generate graphics and tables in gif ou any graphical > format through shell script?? can I call R, run a package in my ascii data e > then export the results to a gif, png or whatever? Yes - R is well

Re: [R] Zero Index Origin?

2004-03-31 Thread Barry Rowlingson
Bob Cain wrote: At this early stage of my learning I can't yet determine if there is a way to effect what in APL was zero index origin, the ordinality of indexes starts with 0 instead of 1. Is it possible to effect that in R without a lot of difficulty? Clearly R wasn't written by Dijkstra:

[R] Can R be useful to me?

2004-03-31 Thread Luiz Rodrigo Tozzi
hi My name is Luiz Tozzi and I have an aplication of R in mind but I dont know if it works. I've got a UNIX DEC machine here in my work and I have to generate statistical graphics and tables in GIF. We use to generate them in Excel sheets, importing our data to a Windows computer. My question

Re: [R] Zero Index Origin?

2004-03-31 Thread Peter Wolf
Bob Cain wrote: I'm very new to R and utterly blown away by not only the language but the unbelievable set of packages and the documentation and the documentation standards and... I was an early APL user and never lost my love for it and in R I find most of the essential things I loved about A

Re: [R] Zero Index Origin?

2004-03-31 Thread Prof Brian Ripley
Much of R is itself written in R, so you cannot possibly change something as fundamental as this. Further, index 0 has a special meaning that you would lose if R have 0-based indexing. However, the R thinking is to work with whole objects (vectors, arrays, lists ...) and you rather rarely need

Re: [R] Failure to compile source packages in Debian

2004-03-31 Thread tobias . verbeke
"F. Tusell" <[EMAIL PROTECTED]> wrote on 31/03/2004 10:06:32: [...] > > and yet libgc2-pic is not resolved. *HOWEVER* following your lead that > whatever is needed must by in a library of name libg2c*, I did the > following in /usr/lib: > >ln -s libg2c0.so.0 libg2c-pic.so > > and everythin

[R] Zero Index Origin?

2004-03-31 Thread Bob Cain
I'm very new to R and utterly blown away by not only the language but the unbelievable set of packages and the documentation and the documentation standards and... I was an early APL user and never lost my love for it and in R I find most of the essential things I loved about APL except for on