Re: [R] Selecting columns of a table (not consecutive)

2005-10-03 Thread Peter Dalgaard
Nolwenn LeMeur [EMAIL PROTECTED] writes: George Papayiannis wrote: Hi everyone, I have a table with 10 columns and many rows. I want to select the 3rd,4th and 10th column. If I wanted to select the 3rd and 4th it would be no problem. q3[ ,(3:4)] but how do I select the 10th

Re: [R] ast package?

2005-10-03 Thread Vito Ricci
Hi, several people asked me where they can found ast. Prof. Masarotto should put it on CRAN as soon as possible. ast package has many functions useful in time series analysis. Regards, Vito --- Peter Dalgaard [EMAIL PROTECTED] ha scritto: Rabaa, Maia [EMAIL PROTECTED] writes: According

[R] unable to compute MAD in aCGH package

2005-10-03 Thread Sze_Sing_LEE/DMO/NCC
Hi, I am currently using the aCGH package in R version 2.1.0 Windows with some supporting packages (eg. cluster) built under R 2.1.1.Using aCGH package, I am able to identify regions of genomic aberrations in my cell lines using the HMM model. However, when I tried to use aCGH for my paraffin

[R] [R-pkgs] release of version 2.0-1 of bayesm

2005-10-03 Thread Rossi, Peter E.
Folks- We are pleased to announce the release of version 2.0-1 of bayesm. Highlights of the new version: 1. Bayesian treatment of SUR (seemingly unrelated regression) 2. Added clustering to mixture of normals models 3. Added routines to compute implied univ and bivariate densities from

[R] seeking an simple example of randomForest package - thanks!

2005-10-03 Thread assic ma
hi, dear all, does anyboby have an simple example of classification by using randomForest? Thanks a lot! best assicma __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] Local install of a contributed package under Linux

2005-10-03 Thread Martin Maechler
Jon == Jonathan Baron [EMAIL PROTECTED] on Sun, 2 Oct 2005 21:00:41 -0400 writes: Jon Try Jon R CMD INSTALL -l lib pkgs Jon The help file is in the utils package. I'm sure this is Jon documented in the manual too. yes, and yes. The other thing people like the original

Re: [R] Local install of a contributed package under Linux (was: R-code for binormla distribution)

2005-10-03 Thread Prof Brian Ripley
On Sun, 2 Oct 2005, Jonathan Baron wrote: Try R CMD INSTALL -l lib pkgs The help file is in the utils package. I'm sure this is documented in the manual too. But you still need to ensure that library() can find the packages. I think the simplest way is that we have set up by default for

[R] Foreign function calls without 'PACKAGE' argument

2005-10-03 Thread Chin Chieh
as title,when I check my own R package It appear the warning:Foreign function calls without 'PACKAGE' argument, I don't know what's wrongcan somebody help me ,thanks [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing

Re: [R] seeking an simple example of randomForest package - thanks!

2005-10-03 Thread Dieter Menne
assic ma assicma at yahoo.com writes: does anyboby have an simple example of classification by using randomForest? Thanks a lot! What's wrong with the simple example in the documentation? Dieter __ R-help@stat.math.ethz.ch mailing list

[R] Save output

2005-10-03 Thread Frank Schmid
Dear R-Mastermind Within a while or a for-loop, is there a way that I can save to disk the results of the previous calculations at the end of each loop with filenames called file01.Rdata, file02.Rdata etc? So far, I have tried to write the outcome of each loop in a 3 dimensional array and

Re: [R] Save output

2005-10-03 Thread vincent
Frank Schmid a écrit : Dear R-Mastermind Within a while or a for-loop, is there a way that I can save to disk the results of the previous calculations at the end of each loop with filenames called file01.Rdata, file02.Rdata etc? as a toy example : for (i in 1:nbfiles) { fullname =

Re: [R] Save output

2005-10-03 Thread Mike Lawrence
I think this is what you're looking for: file_name_root = myfile for(i in 1:10) result- of_some_function out_file-paste(file_name_root, i, .txt, sep = ) write.table(result, file = out_file) } the above code produces 10 files (myfile1.txt to myfile10.txt), each

Re: [R] Save output

2005-10-03 Thread Romain Francois
Le 03.10.2005 12:30, Frank Schmid a écrit : Dear R-Mastermind Within a while or a for-loop, is there a way that I can save to disk the results of the previous calculations at the end of each loop with filenames called file01.Rdata, file02.Rdata etc? So far, I have tried to write the

[R] heatmap

2005-10-03 Thread Andrea Zangrando
Hi, i created a graph with heatmap(sma) function: heatmap(dataHeat(x)) and I wish to change the gradation of colors from blue to red, how could i do? Using heatmap(dataHeat(x), col=c(2,4)) i will use only 2 colors without gradation. Ty so much Andrea

Re: [R] heatmap

2005-10-03 Thread Romain Francois
Le 03.10.2005 14:24, Andrea Zangrando a écrit : Hi, i created a graph with heatmap(sma) function: heatmap(dataHeat(x)) and I wish to change the gradation of colors from blue to red, how could i do? Using heatmap(dataHeat(x), col=c(2,4)) i will use only 2 colors without gradation. Ty so much

Re: [R] heatmap

2005-10-03 Thread vincent
Andrea Zangrando a écrit : ... and I wish to change the gradation of colors from blue to red, how could i do? Hello, here's how I build such a palette. a = 15; palwhiteblue = rgb(a:0, a:0, a, max=a); palredwhite = rgb(a, 0:a, 0:a, max=a); palwhite = rep(rgb(1,1,1), 8); palRWB =

Re: [R] heatmap

2005-10-03 Thread Roger Bivand
On Mon, 3 Oct 2005, Romain Francois wrote: Le 03.10.2005 14:24, Andrea Zangrando a écrit : Hi, i created a graph with heatmap(sma) function: heatmap(dataHeat(x)) and I wish to change the gradation of colors from blue to red, how could i do? Using heatmap(dataHeat(x), col=c(2,4)) i

[R] Problem building/checking library that requires input from user

2005-10-03 Thread Ken Termiso
Hi all, I've got a package i've written that i am trying to check, build, and install. This is my 1st time doing this, so apologies in advance... ;) The package that I've written requires input from the user. It needs to know sample sizes and then runs some calcs, (sample sizes are just

Re: [R] Bug in lmer?

2005-10-03 Thread Douglas Bates
It is indeed a bug and I will address it. On 9/30/05, Horacio Montenegro [EMAIL PROTECTED] wrote: Just to add more info: I've got the same error with both lme4 0.95-10 Matrix 0.95-13 and lme4 0.98-1 Matrix 0.98-7, always running on Win98SE, R 2.1.1. So it seems to occur with any

Re: [R] Problem building/checking library that requires input from user

2005-10-03 Thread Prof Brian Ripley
Either use \dontrun in a \examples{} section of a help page (see Writing R Extensions), or something like num_reps - if(interactive()) readline(How many reps do you have... ) else 500 On Mon, 3 Oct 2005, Ken Termiso wrote: Hi all, I've got a package i've written that i am trying to check,

Re: [R] modeling language for optimization problems

2005-10-03 Thread Huntsinger, Reid
Have you looked at the R interface to GLPK (the GNU Linear Programming Kit)? http://cran.r-project.org/src/contrib/Descriptions/glpk.html Reid Huntsinger -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prof Brian Ripley Sent: Sunday, October 02, 2005

Re: [R] modeling language for optimization problems

2005-10-03 Thread Prof Brian Ripley
On Mon, 3 Oct 2005, Huntsinger, Reid wrote: Have you looked at the R interface to GLPK (the GNU Linear Programming Kit)? http://cran.r-project.org/src/contrib/Descriptions/glpk.html NUOPT is not just about LP: the subject was `language for optimization'. Its manual says `NUOPT is a collection

Re: [R] grob questions

2005-10-03 Thread mkondrin
Gabor Grothendieck wrote: If I run the following example from: http://www.stat.auckland.ac.nz/~paul/grid/doc/grobs.pdf grid.newpage() pushViewport(viewport(w = 0.5, h = 0.5)) myplot - gTree(name = myplot, children = gList(rectGrob(name = box, + gp = gpar(col = grey)), xaxisGrob(name =

Re: [R] Foreign function calls without 'PACKAGE' argument

2005-10-03 Thread mkondrin
Chin Chieh wrote: as title,when I check my own R package It appear the warning:Foreign function calls without 'PACKAGE' argument, I don't know what's wrongcan somebody help me ,thanks [[alternative HTML version deleted]] __

Re: [R] dec2bin?

2005-10-03 Thread Tuszynski, Jaroslaw W.
It is unclear what you are trying to do, but check bin2raw in caTools package: print(x - (1:5)*pi) [1] 3.141593 6.283185 9.424778 12.566371 [5] 15.707963 print(y - bin2raw(x)) [1] 18 2d 44 54 fb 21 09 40 18 2d 44 54 fb 21 19 [16] 40 d2 21 33 7f 7c d9 22 40 18 2d 44 54 fb 21

[R] lmList error message

2005-10-03 Thread Hai Lin
Hello Rs, After running lmList, I've gotten an error message Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : NA/NaN/Inf in foreign function call (arg 4) I'm not able to understand what it means. Could you help me with it? The group varaible is reporterID. Thanks

Re: [R] Problem building/checking library that requires input from user

2005-10-03 Thread Ken Termiso
Thanks, Dr Warnes Prof Ripley... However, upon following the instructions below, I'm getting syntax errors on the line that has \dontshow...below is my code...I get the same error if i omit the first block and just try \dontrun... \dontshow{ num_reps - 10 } \dontrun{ num_reps - readline(How

Re: [R] Problem building/checking library that requires input fro m user

2005-10-03 Thread Warnes, Gregory R
What file are you putting these into? I believe this is the correct syntax for the \example{} section of an .Rd file. If you want to do this in a plain R file, (e.g. package/tests/somename.R), you can use if(interactive) { num_reps - readline(How many reps do you have... ) num_reps -

Re: [R] dec2bin?

2005-10-03 Thread Prof Brian Ripley
On Mon, 3 Oct 2005, Tuszynski, Jaroslaw W. wrote: It is unclear what you are trying to do, but check bin2raw in caTools package: print(x - (1:5)*pi) [1] 3.141593 6.283185 9.424778 12.566371 [5] 15.707963 print(y - bin2raw(x)) [1] 18 2d 44 54 fb 21 09 40 18 2d 44 54 fb 21 19

[R] symbol print-name too long

2005-10-03 Thread Afshartous, David
All, I've coded a function and it works manually if I copy it line by line into R. However, when I try to load (copy and paste) the entire function into R, I get the following error after the listed line of code: + N.j.list = lapply(rej.hyp, length) Error: symbol print-name too long Does

[R] gnomeGUI installation

2005-10-03 Thread Daniel Pick
Hello, I have successfully downloaded the sources and built R as a shared library on a Red Hat Enterprise Level 3 box. I am now trying to build the GNOME GUI, but configure is barfing on glade. According to the system logs, the RPM for libglade2-devel-2.0.1-3.x86_64 is installed, but in

Re: [R] Problem building/checking library that requires input from user

2005-10-03 Thread Uwe Ligges
Ken Termiso wrote: Thanks, Dr Warnes Prof Ripley... However, upon following the instructions below, I'm getting syntax errors on the line that has \dontshow...below is my code...I get the same error if i omit the first block and just try \dontrun... \dontshow{ num_reps - 10 }

Re: [R] Problem building/checking library that requires input from user

2005-10-03 Thread Ken Termiso
It was in a plain R file...I did not interpret the word 'example' in your email as I should've... So, i've been able to fix the num_reps variable problem - thanks!! From: Warnes, Gregory R [EMAIL PROTECTED] To: 'Ken Termiso' [EMAIL PROTECTED] CC: R-Help (E-mail) r-help@stat.math.ethz.ch

Re: [R] gnomeGUI installation

2005-10-03 Thread Prof Brian Ripley
On Mon, 3 Oct 2005, Daniel Pick wrote: I have successfully downloaded the sources and built R as a shared library on a Red Hat Enterprise Level 3 box. I am now trying to build the GNOME GUI, but configure is barfing on glade. According to the system logs, the RPM for

Re: [R] modeling language for optimization problems

2005-10-03 Thread Douglas Bates
On 10/3/05, roger bos [EMAIL PROTECTED] wrote: Paolo, As others have alluded, R does not have any one package that is as versatile and powerful as NuOpt, but R does have many different optimization packages, so you can do LP, QP, Integer programming, and many more types of optimization, all

Re: [R] gnomeGUI installation

2005-10-03 Thread Marc Schwartz (via MN)
On Mon, 2005-10-03 at 18:01 +0100, Prof Brian Ripley wrote: On Mon, 3 Oct 2005, Daniel Pick wrote: I have successfully downloaded the sources and built R as a shared library on a Red Hat Enterprise Level 3 box. I am now trying to build the GNOME GUI, but configure is barfing on glade.

Re: [R] dec2bin?

2005-10-03 Thread Tuszynski, Jaroslaw W.
Function bin2raw was written in order to convert vectors of any type into vectors containing binary form (little or big endian) of those values (stored in hex format as 'raw' since it is the only 1-byte type in R). It was needed in order to convert R vectors to Base64 format commonly used by XML

[R] Library error when using R CMD check

2005-10-03 Thread Ken Termiso
Hi, I've got a library I'm trying to build, and am having an error on R CMD check... The source is fine, and the script runs OK, but during the script test execution it downloads a library from an online repository, which goes fine and it says that installation was successful... However,

Re: [R] modeling language for optimization problems

2005-10-03 Thread Prof Brian Ripley
On Mon, 3 Oct 2005, roger bos wrote: As others have alluded, R does not have any one package that is as versatile and powerful as NuOpt, but R does have many different optimization packages, so you can do LP, QP, Integer programming, and many more types of optimization, all without having to

[R] Grid: constructing a gTree with grobs that use named viewports from a vpTree

2005-10-03 Thread hadley wickham
I'm trying to create a layout with named viewports that I can use for other functions. I create the viewport tree that I want, and a list of grobs with the viewports describing where they should go. library(grid) vp - vpTree( viewport(layout=grid.layout(2,2), name=layout),

[R] ML optimization question--unidimensional unfolding scaling

2005-10-03 Thread Peter Muhlberger
I'm trying to put together an R routine to conduct unidimensional unfolding scaling analysis using maximum likelihood. My problem is that ML optimization will get stuck at latent scale points that are far from optimal. The point optimizes on one of the observed variables but not others and for

Re: [R] Library error when using R CMD check

2005-10-03 Thread Tuszynski, Jaroslaw W.
Maybe you forgot to list the name of dependent package in 'Depends' section of 'DESCRIPTION' file. I think that would have effect you describe. See http://cran.r-project.org/doc/manuals/R-exts.html#The-DESCRIPTION-file for details. Jarek -Original Message- From: [EMAIL PROTECTED]

Re: [R] Grid: constructing a gTree with grobs that use named viewports from a vpTree

2005-10-03 Thread hadley wickham
But I get: Error in downViewport.vpPath(vp, strict = TRUE, recording = FALSE) : Viewport 'tl' was not found presumably because no equivalent of the upViewport(1) command is used. What should I be doing here? I've solved my own problem - I need to use childrenvp instead and

Re: [R] R and Data Storage

2005-10-03 Thread Greg Snow
You might want to look at sqlite (http://www.sqlite.org/). There is already an R package for accessing these databases and the website shows some GUI interfaces that may be easy enough for tha casual user. Best of all it is small, quick, free, and open source. Greg Snow, Ph.D. Statistical Data

Re: [R] Library error when using R CMD check

2005-10-03 Thread Paul Roebuck
On Mon, 3 Oct 2005, Ken Termiso wrote: I've got a library I'm trying to build, and am having an error on R CMD check... The source is fine, and the script runs OK, but during the script test execution it downloads a library from an online repository, which goes fine and it says that

[R] Getting eps into Word documents.

2005-10-03 Thread Rolf Turner
A student in one of my courses has asked me about getting R graphics output (under Linux) into a Word document. I.e. she wants to do her R thing under Linux, but then do her word processing using Word. Scanning around the r-help archives I encountered an inquiry about this topic --- eps into

Re: [R] Getting eps into Word documents.

2005-10-03 Thread Marc Schwartz (via MN)
On Mon, 2005-10-03 at 16:31 -0300, Rolf Turner wrote: A student in one of my courses has asked me about getting R graphics output (under Linux) into a Word document. I.e. she wants to do her R thing under Linux, but then do her word processing using Word. Scanning around the r-help archives

[R] log4j

2005-10-03 Thread Omar Lakkis
Is there a log4j, or similar, package for R? __ 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] spline.des

2005-10-03 Thread lforzani
Hello, I am using library fda and I can not run a lot of functions because I receive the error: Error in bsplineS(evalarg, breaks, norder, nderiv) : couldn't find function spline.des do you know how I can fix that? Thnaks. Liliana __

Re: [R] spline.des

2005-10-03 Thread Uwe Ligges
lforzani wrote: Hello, I am using library fda and I can not run a lot of functions because I receive the error: Error in bsplineS(evalarg, breaks, norder, nderiv) : couldn't find function spline.des do you know how I can fix that? Thnaks. Liliana Version of R (most recent?)?

Re: [R] Getting eps into Word documents.

2005-10-03 Thread tom wright
On Mon, 2005-03-10 at 16:31 -0300, Rolf Turner wrote: A student in one of my courses has asked me about getting R graphics output (under Linux) into a Word document. I.e. she wants to do her R thing under Linux, but then do her word processing using Word. Scanning around the r-help archives

Re: [R] Getting eps into Word documents.

2005-10-03 Thread Ted Harding
Rolf ( Marc) On 03-Oct-05 Marc Schwartz (via MN) wrote: On Mon, 2005-10-03 at 16:31 -0300, Rolf Turner wrote: A student in one of my courses has asked me about getting R graphics output (under Linux) into a Word document. I.e. she wants to do her R thing under Linux, but then do her word

Re: [R] Getting eps into Word documents.

2005-10-03 Thread Mike Prager
on 10/3/2005 3:31 PM Rolf Turner said the following: [...] Does anyone know a satisfactory solution to the problem of including a graphic which exists in the form of a *.eps (encapsulated postscript) file into a Word document. If so, would you be willing to share it with me and my student?

[R] sampling vectors

2005-10-03 Thread Eric Pante
Hello Listers, I am trying to sample a vector to create a new one of sample length, witha sum equal to the sum of the initial vector: initial = 10, 30, 10 (sum=50) sample example = 5, 35, 10 (sum=50) or 25, 15, 10 (sum=50), etc ... My problem is to control the sum, so it stays constant. Any

[R] Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ

2005-10-03 Thread Robbie Turner
I am currently trying to use R to construct a regression model to explain output based on temperature. I have combined my output and temp data into a notepad file. there is no problem with loading the data into R. data.df output temp 1850 17 2849 17 3905 17 4925 17 5

Re: [R] Getting eps into Word documents.

2005-10-03 Thread Marc Schwartz (via MN)
On Mon, 2005-10-03 at 22:00 +0100, Ted Harding wrote: Rolf ( Marc) On 03-Oct-05 Marc Schwartz (via MN) wrote: On Mon, 2005-10-03 at 16:31 -0300, Rolf Turner wrote: A student in one of my courses has asked me about getting R graphics output (under Linux) into a Word document. I.e. she

[R] Clustering Large Data Sets

2005-10-03 Thread A Mani
Hello, Suppose the problem is to cluster each document in a set of 'n' documents (.csv) separately by some clustering method. If 'n' is very large, then is there a method of increasing speed and efficiency by treating the set as a document vector or as a set of document vectors ? Thanks

[R] R for teaching multivariate statistics

2005-10-03 Thread Murray Jorgensen
Greetings all - Next year I will be teaching a third year course in applied statistics about 1/3 of which is multivariate statistics. I would be interested in hearing experiences from those who have taught multivariate statistics using R. Especially I am interested in the textbook that you

[R] newbie questions - looping through hierarchial datafille

2005-10-03 Thread Andrew . Haywood
Dear List, Im new to R - making a transition from SAS. I have a space delimited file with the following structure. Each line in the datafile is identified by the first letter. A = Inventory (Inventory) X = Stratum (Stratum_no Total Ye=year established) P = Plot (Plot_no age slope= species) T

Re: [R] Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ

2005-10-03 Thread ecatchpole
Try plot(data.df$temp, data.df$output) Ted. On 04/10/05 07:31, Robbie Turner wrote,: I am currently trying to use R to construct a regression model to explain output based on temperature. I have combined my output and temp data into a notepad file. there is no problem with loading the data

[R] pdf plotting of splom

2005-10-03 Thread Sebastian Luque
Hi, The following code produces a plot on X11: splom(~iris[1:4], groups = Species, data = iris, panel = panel.superpose, key = list(title = Three Varieties of Iris, columns = 3, points = list(pch = super.sym$pch[1:3], col = super.sym$col[1:3]), text

Re: [R] pdf plotting of splom

2005-10-03 Thread Sebastian Luque
Sebastian Luque [EMAIL PROTECTED] wrote: [...] pdf(splom-test.pdf, family = Times, bg = white) [...] Silly me, it occurred to me to check more carefully that bg argument, which does something different in xyplot (namely, give a background to the figure region, not the plot region as it seems

Re: [R] Getting eps into Word documents.

2005-10-03 Thread Christoph Lehmann
as far as I know (and I am not a specialist), there is no way of importing EPS in word, nor in openoffice, if you want to be able to see the graphics in the word processor and not only a placeholder. So either a) use formats such as bmp, png, or b) under windows: convert eps to e.g. wmf using a

Re: [R] sampling vectors

2005-10-03 Thread vincent
Eric Pante a écrit : Hello Listers, I am trying to sample a vector to create a new one of sample length, witha sum equal to the sum of the initial vector: initial = 10, 30, 10 (sum=50) sample example = 5, 35, 10 (sum=50) or 25, 15, 10 (sum=50), etc ... My problem is to control the sum,