Re: [R] combination which limited

2005-06-12 Thread Muhammad Subianto
Dear All, Many thanks to Marc Schwartz and Gabor Grothendieck who have explained me about using expand.grid function and clearly explain how to use JGR. dd - expand.grid(interface = interface, screen = screen, computer = computer, available = available) There are several possibilities

[R] y-axis and resizing window

2005-06-12 Thread Søren Merser
hi using plot(..., las=1), i.e. horizontal axis labels, the labels on the y-axis jams if the heigth of the graphics windov becomes too low while both x-axis and y-axis kind of removes superflus lables with las=0 (default) is there a way to make plot behave alike with horizontal lables? regards

Re: [R] y-axis and resizing window

2005-06-12 Thread Prof Brian Ripley
On Sun, 12 Jun 2005, Søren Merser wrote: using plot(..., las=1), i.e. horizontal axis labels, the labels on the y-axis jams if the heigth of the graphics windov becomes too low while both x-axis and y-axis kind of removes superflus lables with las=0 (default) is there a way to make plot behave

[R] delete -character from strings in matrix

2005-06-12 Thread Werner Wernersen
Hi! I have strings where occasionally some -chars occur. How can I delete these chars? I tried it with gsub but using as replace does not work. Thanks a lot for any hint! Regards, Werner __ R-help@stat.math.ethz.ch mailing list

[R] glm with variance = mu+theta*mu^2?

2005-06-12 Thread Mwalili, S. M.
You can fit negative binomial using the 'zicounts' package library(zicounts) data(teeth) names(teeth) ## c) fit negative binomial regression model nb.zc - zicounts(resp = dmft~.,x =~gender + age,data=teeth, distr = NB) nb.zc Even, library(zicounts) library(Fahrmeir) # use

Re: [R] y-axis and resizing window

2005-06-12 Thread Søren Merser
thanks with 'jams' i meant messes up, but your term overlap is exactly what i actually had in mind though a minor problem, do you think that the code will change to enable checking for enough height-wise space? regards søren - Original Message - From: Prof Brian Ripley [EMAIL

Re: [R] delete -character from strings in matrix

2005-06-12 Thread Liaw, Andy
Please define does not work. Here's what I get: m - matrix(paste(letters[1:4], does not work.), 2, 2) m [,1] [,2] [1,] a does not work. c does not work. [2,] b does not work. d does not work. gsub(does not work., , m) [1] a b c d structure(gsub(does not

Re: [R] delete -character from strings in matrix

2005-06-12 Thread Werner Wernersen
Thanks for the reply, Andy! My problem was that I could not get rid of a double quote character within the string. I don't know what I have done before, but now it works...?!?! Sorry for bothering you. Best, Werner Liaw, Andy wrote: Please define does not work. Here's what I get: m -

[R] memory allocation problem under linux

2005-06-12 Thread [EMAIL PROTECTED]
I have some compiled code that works under winXp but not under linux (kernel 2.6.10-5). I'm also using R 2.1.0 After debugging, I've discovered that this code: #define NMAX 256 long **box; ... box = (long **)R_alloc(NMAX, sizeof(long *)); gives a null pointer, so subsequent line:

Re: [R] Replacing for loop with tapply!?

2005-06-12 Thread Sander Oom
Dear Adaikalavan, Your solution (the second function) is definitely the most elegant and generic solution of all replies in this discussion. Robust for missing values and flexible to allow as many calculations as desired! It is so clear, I even managed to hack it (of course also thanks to the

[R] linking R to goto blas

2005-06-12 Thread Stefan Sobernig
Dear all, I am currently trying to link R 2.1.0 to the GOTO BLAS 0.99.3 library on a box running Fedora Core 3 , basically following the steps indicated in the R-Admin document: 1: I downloaded the current libgoto.xxx.so from

Re: [R] linking R to goto blas

2005-06-12 Thread Prof Brian Ripley
On Sun, 12 Jun 2005, Stefan Sobernig wrote: I am currently trying to link R 2.1.0 to the GOTO BLAS 0.99.3 library on a box running Fedora Core 3 , basically following the steps indicated in the R-Admin document: 1: I downloaded the current libgoto.xxx.so from

Re: [R] linking R to goto blas

2005-06-12 Thread Peter Dalgaard
Stefan Sobernig [EMAIL PROTECTED] writes: Dear all, I am currently trying to link R 2.1.0 to the GOTO BLAS 0.99.3 library on a box running Fedora Core 3 , basically following the steps indicated in the R-Admin document: 1: I downloaded the current libgoto.xxx.so from

[R] 0 * NA

2005-06-12 Thread BORGULYA Gábor
Hi list! Debuging one of my R programs I found: 0 * NA [1] NA It this a bug, or intentional? I would expect 0 or 0.0 depending on the type of the NA. Gabor __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] 0 * NA

2005-06-12 Thread Liaw, Andy
I believe that's intentional. NA means we don't know what the value is, so just about any operation with NA will result in NA. You might think anything times 0 is 0, but: 0*Inf [1] NaN and there's no guarantee that the true value not observed is not Inf... Andy From: BORGULYA Gábor Hi

Re: [R] linking R to goto blas

2005-06-12 Thread Peter Dalgaard
Peter Dalgaard [EMAIL PROTECTED] writes: Stefan Sobernig [EMAIL PROTECTED] writes: Dear all, I am currently trying to link R 2.1.0 to the GOTO BLAS 0.99.3 library on a box running Fedora Core 3 , basically following the steps indicated in the R-Admin document: 1: I downloaded

[R] memory allocation problem under linux

2005-06-12 Thread [EMAIL PROTECTED]
I've written: #define NMAX 256 long **box; ... box = (long **)R_alloc(NMAX, sizeof(long *)); gives a null pointer, so subsequent line: for (i=0; iNMAX; i++) box[i] = (long *) R_alloc(NMAX, sizeof(long)); gives a SIGSEGV signal. Sorry, that's not exact: I have a segmentation fault

[R] [R-pkgs] New versions of Matrix and lme4 packages

2005-06-12 Thread Douglas Bates
I have uploaded version 0.96-1 of both Matrix and lme4 to CRAN. The source package should migrate to CRAN over the weekend and binary packages should be available some time next week. As for previous releases, the versions of these two packages are interdependent. The lme4 package requires

[R] Essay identification

2005-06-12 Thread Werner Bier
Hi R-help, I have a database of 10 students who have written an overall of 78 essays. The challenge? I would like to identify who wrote the 79th essay. Has anybody used R in this context? Even if not, would you suggest me which pattern recognition technique I might possibly apply?

Re: [R] Essay identification

2005-06-12 Thread Berton Gunter
I assume that you know the usual procedure is to 'score' each essay by a vector that gives the frequency of occurrence of commonly used (sometimes adding subject matter specific) words and phrases. This multivariate response is then fed in as a training set into your favorite supervised

Re: [R] Essay identification

2005-06-12 Thread Gabor Grothendieck
On 6/12/05, Werner Bier [EMAIL PROTECTED] wrote: Hi R-help, I have a database of 10 students who have written an overall of 78 essays. The challenge? I would like to identify who wrote the 79th essay. Has anybody used R in this context? Even if not, would you suggest me which pattern

Re: [R] ANOVA vs REML approach to variance component estimation

2005-06-12 Thread Adaikalavan Ramasamy
Thank you for confirming this and introducing me to varcomp(). I have another question that I hope you or someone else can help me with. I was trying to generalise my codes for variable measurement levels and discovered that lme() was estimating the within group variance even with a single

Re: [R] delete -character from strings in matrix

2005-06-12 Thread Adaikalavan Ramasamy
You will need to escape special characters. Here is an example : my.string - Here is a quote \ in a string my.string [1] Here is a quote \ in a string gsub(\, , my.string) [1] Here is a quote in a string See help(regexp) for more details. Regards, Adai On Sun, 2005-06-12 at 14:10

Re: [R] ANOVA vs REML approach to variance component estimation

2005-06-12 Thread Douglas Bates
On 6/12/05, Adaikalavan Ramasamy [EMAIL PROTECTED] wrote: Thank you for confirming this and introducing me to varcomp(). I have another question that I hope you or someone else can help me with. I was trying to generalise my codes for variable measurement levels and discovered that lme() was

Re: [R] Essay identification

2005-06-12 Thread Ted Harding
On 12-Jun-05 Berton Gunter wrote: I assume that you know the usual procedure is to 'score' each essay by a vector that gives the frequency of occurrence of commonly used (sometimes adding subject matter specific) words and phrases. This multivariate response is then fed in as a training set

Re: [R] ANOVA vs REML approach to variance component estimation

2005-06-12 Thread Adaikalavan Ramasamy
Thank you. On Sun, 2005-06-12 at 18:54 -0500, Douglas Bates wrote: On 6/12/05, Adaikalavan Ramasamy [EMAIL PROTECTED] wrote: Thank you for confirming this and introducing me to varcomp(). I have another question that I hope you or someone else can help me with. I was trying to

[R] slow loading with lme4

2005-06-12 Thread ronggui
it takes a long time to load the lme4 package.anyone else encounter this problem? system.time(library(lme4)) Matrix lattice [1] 19.90 0.30 25.56NANA version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32

Re: [R] us zipcode data map

2005-06-12 Thread Francisco J. Zagmutt
Not that I am aware of. Try library(help=maps) for a list of all the functions in the library. Anyhow, I am not sure that a US map with zipcodes will look very good/readable, unless you focus on a very small area (i.e. county). Cheers Francisco From: Mike R [EMAIL PROTECTED] Reply-To: