[R] bootstrapping data.frame and matrix

2003-05-31 Thread cp133
Dear All, When bootstrapping a statistics based on more than one vector, from a data.frame or a matrix object, it looks like I am not able to pass the data to R. What am I doing wrong? I use the library bootstrap. Here is an example with a data.frame called data boot2_bootstrap(data, theta,

[R] Missing 'getGroupMembers()'

2003-05-31 Thread Anton Crombach
Hi, I'm trying to write a method such that my own classes can be used with the groups like Summary and Math, but when I tried to look for examples or just wanted to get an idea of which functions are the members of a group, I found out that the function getGroupMembers is not present... I

[R] Time for Usenet R Group?

2003-05-31 Thread Mike Prager
I probably shouldn't suggest this, because I can't volunteer to implement it. However, I bring it up in the hopes that if (1) others agree and (2) the R core group think it a good idea that a suitable volunteer will come forward. I am finding that the flood of R email messages is becoming

[R] Normal deviate generation - Marsaglia's ziggurat method

2003-05-31 Thread Ravi Varadhan
Hi: I was wondering why Marsaglia's new ziggurat method for generating deviates from the standard normal distribution has not been implemented in the R base package. I know that it is available in SuppDists pacakage of Bob Wheeler, as rziggurat. According my timing tests, it is about 6 to 7

Re: [R] Missing 'getGroupMembers()'

2003-05-31 Thread Prof Brian Ripley
Do you want to write S3 or S4 methods for these groups? Both systems have groups with those names (and they are not the same). In either case, the details are in ?.Methods (in current versions of R). On Fri, 30 May 2003, Anton Crombach wrote: I'm trying to write a method such that my own

[R] How to check if a pipe was successfully opened or not?

2003-05-31 Thread Henrik Bengtsson
Is there a way to detect if the opening of a connection to a pipe was successful or not? Here are two examples # Works con - pipe(ls) res - open(con, open=r) print(res) NULL # Does not work con - pipe(unknown_command) res - open(con, open=r) 'unknown_command' is not recognized as

RE: [R] Missing 'getGroupMembers()'

2003-05-31 Thread Anton Crombach
S4 methods, I'm using Programming with data (~ the green book) as my main reference for programming. Not everything is the same in R, usually that was not a problem, but using these groups I got a bit lost. I've been looking in the R docs of ?setGenerics, ?setGeneric and so on already. Do you

Re: [R] Comparison Operator

2003-05-31 Thread Don MacQueen
grep() by itself isn't quite right for this job: a-Is a Fish b-aFish if (grep(b,a)) c-TRUE Error in if (grep(b, a)) c - TRUE : argument is of length zero -Don At 6:24 PM -0500 5/29/03, Dirk Eddelbuettel wrote: On Thu, May 29, 2003 at 05:11:24PM -0600, [EMAIL PROTECTED] wrote: Does R have

Re: [R] Normal deviate generation - Marsaglia's ziggurat method

2003-05-31 Thread Prof Brian Ripley
Accuracy and reliability are more important than speed. As you say, it is available elsewhere, but who actually needs a faster method? 1 million normals take 0.55s on my machine (an Athlon 2600): 1 million uniforms take 0.16s, so there is not I think scope to be `6 to 7 times faster' at R level.

Re: [R] Time for Usenet R Group?

2003-05-31 Thread Marc R. Feldesman
At 07:17 AM 5/30/2003, Mike Prager wrote: I probably shouldn't suggest this, because I can't volunteer to implement it. However, I bring it up in the hopes that if (1) others agree and (2) the R core group think it a good idea that a suitable volunteer will come forward. I am finding that the

RE: [R] Comparison Operator

2003-05-31 Thread mhoward
OK, regexpr gets me what I needed, thanks to all.. One more thing, say I have a Table like: 0 RAW1 RAW2 RAW3 AVE1 AVE2 AVE3 1 1 252.3 1.2 4.5 2 0 361.7 2.2 3.5 3 3 160.1 3.9 1.6 and I want to create a sub table that only has the RAW columns. Problem is

Re: [R] How to check if a pipe was successfully opened or not?

2003-05-31 Thread Prof Brian Ripley
On Fri, 30 May 2003, Henrik Bengtsson wrote: Is there a way to detect if the opening of a connection to a pipe was successful or not? Here are two examples # Works con - pipe(ls) res - open(con, open=r) print(res) NULL # Does not work con - pipe(unknown_command) res -

[R] conversao para matriz

2003-05-31 Thread Danilo Tadashi Tagami Kamimura
olá, estou tentando converter a variável b (abaixo) em uma matriz com duas colunas, sem muito sucesso, alguém teria alguma sugestão? muito obrigado, a-outer(1:5,1:7,FUN=paste) b- sample(a,10) [1] 4 2 5 7 3 3 4 1 4 5 3 5 5 2 2 1 3 7 1 4 Matriz desejada: 4 2 5 7 .. 3 7 1 4

RE: [R] Comparison Operator

2003-05-31 Thread mhoward
Thanks Rolf and J.R. both of these solutions worked for me and thanks to all the others for your suggestions, I was able to accomplish what I needed. xx - df[,grep('RAW',names(df))] xxx - df[,regexpr('RAW',names(df)) 0] Mike -Original Message- From: mhoward Sent: Friday, May 30,

Re: [R] conversao para matriz

2003-05-31 Thread Spencer Graves
Have you considered regexpr and substr or substring? hth. spencer graves Danilo Tadashi Tagami Kamimura wrote: olá, estou tentando converter a variável b (abaixo) em uma matriz com duas colunas, sem muito sucesso, alguém teria alguma sugestão? muito obrigado, a-outer(1:5,1:7,FUN=paste) b-

[R] How to remove a complete dataframe column

2003-05-31 Thread Mark Marques
I am using dataframes and I and I want to delete (remove) a specific column by name ... the data frame has 14 columns with several names and only need some. I tried to overwrite the columns with a single value but that in not very clean as I need to export the data to file. The rm command gives

Re: [R] Time for Usenet R Group?

2003-05-31 Thread A.J. Rossini
Mike Prager [EMAIL PROTECTED] writes: I am finding that the flood of R email messages is becoming difficult to deal with, even using filters, etc., in my email client. Would we be better served by establishing a Usenet newsgroup? Would that be practical or impractical? Would it create

Re: [R] conversao para matriz

2003-05-31 Thread Uwe Ligges
Danilo Tadashi Tagami Kamimura wrote: olá, estou tentando converter a variável b (abaixo) em uma matriz com duas colunas, sem muito sucesso, alguém teria alguma sugestão? muito obrigado, a-outer(1:5,1:7,FUN=paste) b- sample(a,10) [1] 4 2 5 7 3 3 4 1 4 5 3 5 5 2 2 1 3 7 1 4 Matriz desejada: 4

Re: [R] How to remove a complete dataframe column

2003-05-31 Thread Prof Brian Ripley
On Fri, 30 May 2003, Mark Marques wrote: I am using dataframes and I and I want to delete (remove) a specific column by name ... the data frame has 14 columns with several names and only need some. I tried to overwrite the columns with a single value but that in not very clean as I need to

[R] [Q] R equivalent for Splus get.message()

2003-05-31 Thread Paul Roebuck
I'm trying to get a translation of some Splus code going. My problem is with the S-plus get.message() function not existing in R. Is there a replacement or alternative? ErrorHandler.func-function() { cat(app.terminated\n); cat(paste(err.fatal,get.message(),\n,sep=)); dump.calls(); }

Re: [R] How to remove a complete dataframe column

2003-05-31 Thread michaell taylor
or, if you no longer want the columns and don't want to create more objects, you could: rtu$Ri - NULL On Fri, 2003-05-30 at 11:51, Mark Marques wrote: I am using dataframes and I and I want to delete (remove) a specific column by name ... the data frame has 14 columns with several names

Re: [R] R CMD BATCH --vanilla --slave produces unwanted lines

2003-05-31 Thread David Brahm
Robin Hankin [EMAIL PROTECTED] wrote: Anyway, now I'm trying to run R in batch mode, but I'm getting extra output, which I don't want (RedHat 8.3, R-1.7.0): ... r:~% R CMD BATCH --vanilla --slave test.R Why not just run: unix R --vanilla --slave test.R test.out Then the options(echo=FALSE)

Re: [R] Normal deviate generation - Marsaglia's ziggurat method

2003-05-31 Thread Roger D. Peng
Since it is available in the `SuppDists' package, why do we need it in the `base' package? There are perhaps hundreds of useful functions that exist in external packages that are not in `base'. My understanding was that one goal was to keep `base' from getting too bloated. -roger Ravi

Re: [R] bootstrapping data.frame and matrix

2003-05-31 Thread Prof Brian Ripley
On Fri, 30 May 2003, chiara peroni wrote: I use an old version of R (5.02). The reason I do not use the package boot on the last version of R, is the clash of the package itself with expressions contained in other packages, i.e. thesm library. I don't know if you have the same problem. Hi

[R] Sparse Matrix

2003-05-31 Thread Harold Doran
I am learning about sparse matrices and wonder if R can create them from a full matrix. Can anyone tell me how I might be able to accomplish this. -- Harold C. Doran Director of Research and Evaluation New American Schools 675 N. Washington Street, Suite 220 Alexandria, Virginia 22314

[R] how to install a package of my own functions

2003-05-31 Thread Huiqin Yang
Hi everyone, Does anyone know how to get the functions we've made to work as a package? version _ platform sparc-sun-solaris2.9 arch sparc os solaris2.9 system sparc, solaris2.9 status major1

Re: [R] how to install a package of my own functions

2003-05-31 Thread Roger D. Peng
See the PDF manual Writing R Extensions from the CRAN website. -roger Huiqin Yang wrote: Hi everyone, Does anyone know how to get the functions we've made to work as a package? version _ platform sparc-sun-solaris2.9 arch sparc os

[R] color in plot title: title(sub=something, col=4)

2003-05-31 Thread Jacob Wegelin
Is there a way to specify the color of the main title, the subtitle, or the axis labels? I mean, for instance, something like title(main=cougar, col=2) For me, the above command produces the color black; that is, the col argument has no effect. I'm on a Windows 2000 machine with version

[R] Extracting Vectors from Lists of Lists Produced by Functions

2003-05-31 Thread White, Charles E WRAIR-Wash DC
If you found my subject heading to be confusing then I'm sure you'll enjoy the example I've included below. I find the apply type functions to be wonderful for avoiding loops but when I use them with existing functions, I end up using loops anyway to extract the vectors I want. I would appreciate

Re: [R] Error using glmmPQL

2003-05-31 Thread Andrew Perrin
Thanks. -- Andrew J Perrin - http://www.unc.edu/~aperrin Assistant Professor of Sociology, U of North Carolina, Chapel Hill [EMAIL PROTECTED] * andrew_perrin (at) unc.edu On Fri, 30 May 2003, Prof Brian Ripley wrote: lme does

[R] Downloading packages from CRAN

2003-05-31 Thread rwatkins
Hello- I am trying to download packages from CRAN to my Window-based system. I downloaded the most recent version of Perl, as instructed in the Install Manual and the car package, just as a trial. Where should they reside within my computer: the unzipped Perl I have placed at

Re: [R] Time for Usenet R Group?

2003-05-31 Thread Mark Hall
Actually, check the archives about a year ago when this was brought up and the associated problems. Ranging from spam harvesters, copyright and the like. Best, MEH -- Mark Hall Niigata Prefectural Museum of History __ [EMAIL PROTECTED] mailing

Re: [R] Downloading packages from CRAN

2003-05-31 Thread Ko-Kang Kevin Wang
Hi, On Fri, 30 May 2003 [EMAIL PROTECTED] wrote: Date: Fri, 30 May 2003 17:21:11 -0500 From: [EMAIL PROTECTED] To: R Help [EMAIL PROTECTED] Subject: [R] Downloading packages from CRAN Hello- I am trying to download packages from CRAN to my Window-based system. I downloaded the

[R] Need help installing qtoolbox

2003-05-31 Thread Toby Popenfoose
I have windows version of R v1.6.2 I have downloaded the qtoolbox.zip from http://www.cmis.csiro.au/S-PLUS/qtoolbox/ My R command line is install.packages(C:/Program Files/R/qtoolbox.zip, .libPaths()[1], CRAN = NULL) and I get the following error message: updating HTML package descriptions