Re: [R] write.csv +RMySQL request

2008-02-29 Thread Prof Brian Ripley
On Fri, 29 Feb 2008, Tristan Casey wrote: Thanks again for your help. I am wanting my variable to store a character string exactly as the write.csv function would store as a csv text file; IE: My goal is to store a data frame of this construction; x1 x2 1 2 3 4 as X1,X2,1,2,3,4 (the

[R] Graphic text

2008-02-29 Thread Maura E Monville
Can R handle graphic text ? I mean something like a pop-up message window or a text widget ? Thank you so much. -- Maura E.M __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] How to convert the user coordinate system in R graph to normal coordinate system whose origin is the upper-left cornner of the drawing area?

2008-02-29 Thread Prof Brian Ripley
On Fri, 29 Feb 2008, Guohui Ding wrote: Dear friends, The user coordiante system in the R graphics is easy to understand as it simply corresponds to the range of values on the axes of the plot. However, sometimes, we want to kown the coordinates of a region in other system, e.g., the

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Tristan Casey
Thanks again for your help. I am wanting my variable to store a character string exactly as the write.csv function would store as a csv text file; IE: My goal is to store a data frame of this construction; x1 x2 1 2 3 4 as X1,X2,1,2,3,4 (the same format as CSV). I am aware of the file

Re: [R] ggplot2 boxplot confusion

2008-02-29 Thread ONKELINX, Thierry
Chris, I've learned those things by using R and trying to solve the problems I encounter. The dummy is nothing more than a more elegant way of using factor(1). The only connection with ggplot2, is that the plots will use the name in the dataframe or the expression. And 'dummy' looks nicer than

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Tristan Casey
Ahh, my apologies I must admit that I don't fully understand textConnections fully. I have been reading up on th RODBC package as an alternative to RMySQL. With the file argument in write.csv, are you saying it is possible to write the csv formated data directly to a cell in a MySQL database? I

[R] Optional data argument for a function

2008-02-29 Thread Viechtbauer Wolfgang (STAT)
Dear All, I am working on a function that has an optional data argument, just like lm(). If the user sets the data argument equal to some dataframe, then the function should look inside the dataframe for the variables given to other arguments, otherwise the variables should be accessible from

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Prof Brian Ripley
On Fri, 29 Feb 2008, Tristan Casey wrote: Ahh, my apologies I must admit that I don't fully understand textConnections fully. I have been reading up on th RODBC package as an alternative to RMySQL. With the file argument in write.csv, are you saying it is possible to write the csv

[R] svm questions

2008-02-29 Thread Luoan
Hi : I have several puzzling questions about R package e1071 , svm( ) function: 1: what is the model output about model$coefs, is it (alfa(i)*y(i) ) and model$rho ? is it - b 2: if I want to know w , is it model$SV * model$coefs ? 3: if I just want to

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Tristan Casey
Well that is certainly good news if write.csv output can be stored directly to a character vector! I have tried to specify a vector within the file= argument for example; write.csv(a,file=b) where b is a preexisting character vector This does not work. Do I need to define b as something else,

[R] Getting Keypressed State in rgl

2008-02-29 Thread Dieter Menne
Dear Rglers, when using a callback in rgl (Windows, if it matters) http://finzi.psych.upenn.edu/R/library/rgl/html/callbacks.html I would like to get the Asynchronous keyboard status (as least Shift/Control, but preferably other key) to set markers in a plot. getGraphicsEvents seems to be

Re: [R] Optional data argument for a function

2008-02-29 Thread Henrique Dallazuanna
One option is: dosomething - function(x, data, env=parent.frame()) { if(!missing(data)) x - data[,deparse(substitute(x))] temp - x^2 + 5 return(temp) } On 29/02/2008, Viechtbauer Wolfgang (STAT) [EMAIL PROTECTED] wrote: Dear All, I am working on a function that has an

Re: [R] Graphic text

2008-02-29 Thread Henrique Dallazuanna
you are on Windows? If yes look at: ?winDialog ?winDialogString otherwise see tcltk package On 29/02/2008, Maura E Monville [EMAIL PROTECTED] wrote: Can R handle graphic text ? I mean something like a pop-up message window or a text widget ? Thank you so much. -- Maura E.M

Re: [R] Getting Keypressed State in rgl

2008-02-29 Thread Duncan Murdoch
Dieter Menne wrote: Dear Rglers, when using a callback in rgl (Windows, if it matters) http://finzi.psych.upenn.edu/R/library/rgl/html/callbacks.html I would like to get the Asynchronous keyboard status (as least Shift/Control, but preferably other key) to set markers in a plot.

Re: [R] How to read HUGE data sets?

2008-02-29 Thread Ruben Roa Ureta
To read in a few columns you can can also use something like, reduced.data-do.call(cbind,scan(file='location/name',what=list(NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL),flush=TRUE)) where only columns 8 and 10 where saved in your object. Rubén

[R] GUI developement / Matlab

2008-02-29 Thread Antje
Hi there, I was wondering whether there are flexible packages available with which you can create user interfaces? (I've read about gWidgets!?) For example in Matlab you can even create stand alone applications. Is it also possible for R in the same extend? Of course it should be platform

[R] Variable modified from within a function

2008-02-29 Thread Josselin Noirel
Dear all, I quickly checked on the internet and nothing relevant came up, so, I hope to find the answer to a question here. I'd pleased to be redirected towards relevant pieces of information on the internet, if I merely missed something obvious. Actually, I've got two somewhat related

Re: [R] How to read HUGE data sets?

2008-02-29 Thread Liviu Andronic
On 2/28/08, Gabor Grothendieck [EMAIL PROTECTED] wrote: The sqldf package can read a subset of rows and columns (actually any sql operation) from a file larger than R can otherwise handle. It will automatically set up a temporary SQLite database for you, load the file into the database

Re: [R] How to read HUGE data sets?

2008-02-29 Thread Gabor Grothendieck
On Fri, Feb 29, 2008 at 8:27 AM, Liviu Andronic [EMAIL PROTECTED] wrote: On 2/28/08, Gabor Grothendieck [EMAIL PROTECTED] wrote: The sqldf package can read a subset of rows and columns (actually any sql operation) from a file larger than R can otherwise handle. It will automatically

[R] Replace a list of values in data frame

2008-02-29 Thread Silvia Lipski
Dear R-users, I am sorry if I ask for something that has been asked before, however, I still could not solve my little problem by consulting the previous thread on this topic: I would like to replace several values in a data frame, such as in: colorful subject response 1 meblack 2

Re: [R] unbalanced one-way ANOVA

2008-02-29 Thread Douglas Bates
On Fri, Feb 29, 2008 at 4:47 AM, Nauta, A.L. [EMAIL PROTECTED] wrote: Thank you for your reply, is your answer (that the approach does not depend on balance in the data) only valid for one-way anova, or also for two-way or more-way anova? Any kind. You should be aware that for unbalanced

Re: [R] Replace a list of values in data frame

2008-02-29 Thread Gabor Grothendieck
See ?recode in the car package. On Fri, Feb 29, 2008 at 8:50 AM, Silvia Lipski [EMAIL PROTECTED] wrote: Dear R-users, I am sorry if I ask for something that has been asked before, however, I still could not solve my little problem by consulting the previous thread on this topic: I would

[R] error with RSQLite

2008-02-29 Thread Paul Hammer
hi members, i try to load the package genefilter but i get always this error message: _R code:_ library(genefilter) Error in dyn.load(file, ...) : unable to load shared library '/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so': /usr/local/lib64/R/library/RSQLite/libs/RSQLite.so:

Re: [R] Hmisc xYplot won't do conditioning on factors?

2008-02-29 Thread Mark Difford
Hi Ivan, It appears that xYplot, unlike standard xyplot (or coplot to that matter) does not accept factors as x variable in formula. To add to what you have said. It may not be too well documented in ?xYplot, but xYplot() is really designed to do a number of very useful things with two sets

Re: [R] Replacing plot symbols w/ subject IDs in xyplot()

2008-02-29 Thread David Afshartous
For plot(): plot(x,y, type = n) text(x,y, lab= junk.frm$ID) This accomplishes the goal of using subject IDs as plot symbols, but I can't seem to get the same result below w/ xyplot(). Is there something different I have to do for xyplot()? xyplot(y ~ x, type = n) text(x,y , lab=junk.frm$ID) #

[R] [R-pkgs] MiscPsycho 1.1 revised posted

2008-02-29 Thread Doran, Harold
A revised version of the MiscPsycho package has been uploaded to CRAN. The fixes include: 1) A bug found in the class.acc() function that resulted in overflow errors when computing probabilities associated with polytomously scored items has been resolved. The function now integrates over the

[R] help

2008-02-29 Thread Daoping Mo
Dear Sir/Madam, I got some problem about using R. I am a student, and need to use R a lot. But sometimes when I am working in computer lab, we can not install some particular pacakges by ourselves because of the previliges. Can the folder of Librabry of R, move to, for instance the personal

[R] barplot and pca plot in mvpart

2008-02-29 Thread Shu Zhang
Hello, I'm using the R package called mvpart, which is about the multivariate regression trees. The function I wrote is: mrt1- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv=pick,

Re: [R] data manipulation

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 15:01 +, Luis Ridao Cruz wrote: R-help, I have a data frame in which I compute maximum by rows and I wish to find out the column name at which this maximun occurs. Does anyone know how to do it? Thanks in advance Do you mean compute the maximum value in a row

[R] RSQLite error

2008-02-29 Thread Paul Hammer
hi members, i try to load the package genefilter but i get always this error message: _R code:_ library(genefilter) Error in dyn.load(file, ...) : unable to load shared library '/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so': /usr/local/lib64/R/library/RSQLite/libs/RSQLite.so:

Re: [R] Replace a list of values in data frame

2008-02-29 Thread Henrique Dallazuanna
Try this: colorful$response - factor(colorful$response) levels(colorful$response)[levels(colorful$response) %in% ToBeReplaced] - Replacement On 29/02/2008, Silvia Lipski [EMAIL PROTECTED] wrote: Dear R-users, I am sorry if I ask for something that has been asked before, however, I still

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Charilaos Skiadas
The following worked for me (put together after reading ? textConnection). Put simply, all read/write command work with connections, which are if you like devices that know how to read or write things. textConnection creates such a device that writes (or reads if we used open=r) to/from an

Re: [R] help

2008-02-29 Thread Charilaos Skiadas
Have a look at the documentation of ?.libPaths, it seems to me that setting the variable R_LIBS_USER is what you would want to do. Haris Skiadas Department of Mathematics and Computer Science Hanover College On Feb 29, 2008, at 10:14 AM, Daoping Mo wrote: Dear Sir/Madam, I got some problem

Re: [R] GUI developement / Matlab

2008-02-29 Thread Don MacQueen
Information about *graphical* user interface efforts for R, assuming that's what you meant, can be found here: http://www.sciviews.org/_rgui/ -Don At 1:45 PM +0100 2/29/08, Antje wrote: Hi there, I was wondering whether there are flexible packages available with which you can create user

Re: [R] write.csv +RMySQL request

2008-02-29 Thread Jeffrey Horner
Tristan Casey wrote on 02/29/2008 03:37 AM: Well that is certainly good news if write.csv output can be stored directly to a character vector! I have tried to specify a vector within the file= argument for example; write.csv(a,file=b) where b is a preexisting character vector This does

[R] bugs.seed= and summary.only= option in R2WinBUGS

2008-02-29 Thread He, Yulei
Dear R user: I am using R2WinBUGs to call WinBUGS from R. But I have some problems in using either the option bugs.seed and summary.only in the function bugs. Here are the programs and error messages. It appears that if I don't use either option, the program runs fine. I am using R2.5.1 and

Re: [R] RSQLite error

2008-02-29 Thread Paul Hammer
Gavin Simpson schrieb: Paul, Do you have the RSQLite package installed? In a clean R, what does require(RSQLite) return? If you don't have it installed, then install the package: install.package(RSQLite, dep = TRUE) If that proceeds correctly - you may need external libraries of

Re: [R] Graphic text

2008-02-29 Thread Neil Shephard
Hi Maura, I'm afraid that your message below only came to me, and wasn't copied to R-help. I'm useless at graphics in R, but I'd recommend posting exactly what R-code that your writing, this will show what plotting commands your using and the syntax, and will allow others to provide insightful

Re: [R] RSQLite error

2008-02-29 Thread Gavin Simpson
Paul, Do you have the RSQLite package installed? In a clean R, what does require(RSQLite) return? If you don't have it installed, then install the package: install.package(RSQLite, dep = TRUE) If that proceeds correctly - you may need external libraries of headers for RSQLite to compile

[R] setwd on other computer?

2008-02-29 Thread Paul Hammer
hi members, is it possible to set the work directory ( e.g. via setwd() ) on a other computer than R has been started? thanks paul __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] How to convert the user coordinate system in R graph tonormal coordinate system whose origin is the upper-leftcornner of the drawing area?

2008-02-29 Thread Greg Snow
Look at the cnvrt.coords function in the TeachingDemos package. You should be able to use that function to transform from user coordinates to device coordinates (where 0 is left/bottom and 1 is right/top), then multiply the device coordinates by the resolution to get the pixel numbers. Hope

[R] data manipulation

2008-02-29 Thread Luis Ridao Cruz
R-help, I have a data frame in which I compute maximum by rows and I wish to find out the column name at which this maximun occurs. Does anyone know how to do it? Thanks in advance __ R-help@r-project.org mailing list

Re: [R] help

2008-02-29 Thread Henrique Dallazuanna
Corrected: dir.create(file.path(path.expand('~'), 'library')) myLibrary - file.path(path.expand('~'), 'library') install.packages('package', lib = myLibrary) library(package, lib = myLibrary) #or .libPaths(c(.libPaths(), myLibrary)) library(package) On 29/02/2008, Henrique Dallazuanna [EMAIL

Re: [R] Getting Keypressed State in rgl

2008-02-29 Thread Duncan Murdoch
On 2/29/2008 7:16 AM, Duncan Murdoch wrote: Dieter Menne wrote: Dear Rglers, when using a callback in rgl (Windows, if it matters) http://finzi.psych.upenn.edu/R/library/rgl/html/callbacks.html I would like to get the Asynchronous keyboard status (as least Shift/Control, but preferably

Re: [R] [R-SIG-Finance] EMM: how to make forecast using EMM methods?

2008-02-29 Thread Guy Yollin
Hi Michael, Yes, this is what I'm suggesting. Bear in mind, your model estimation process should have also resulted in volatility estimates for t-1, t-2, etc. Your simulation will require one or more of these terms as input (in addition to the random innovations) since your stochastic

[R] Optimization when only binary variables can be manipulated?

2008-02-29 Thread Ben Fairbank
I am trying to optimize in situations such as the following: Given 100 ability test items with such known item values as (1) difficulty, (2) correlation with criterion, (3) position in subject matter taxonomy, (4) illustrated/nonillustrated, (5) abstraction level, and (6) length, I seek to

[R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Frank E Harrell Jr
Several people have given great advice on how to successfully use X11 on Mac to so we can use the dvi previewer to view latex() output from Hmisc. Now after a version upgrade of X11 and X11sdk we are getting lots of crashes. I noticed a Mac dvi previewer with an executable stored as

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Thomas Adams
Frank, You don't need to use X11 for TeXShop; I use Lyx for the Mac as well — I don't use X11 or xdvi for either… Regards, Tom Frank E Harrell Jr wrote: Several people have given great advice on how to successfully use X11 on Mac to so we can use the dvi previewer to view latex() output

Re: [R] help

2008-02-29 Thread Henrique Dallazuanna
See this: myLibrary - file.path(path.expand('~'), 'library') install.packages('package', lib = myLibrary) library(package, lib = myLibrary) #or .libPaths(c(.libPaths(), myLibrary)) library(package) On 29/02/2008, Daoping Mo [EMAIL PROTECTED] wrote: Dear Sir/Madam, I got some problem about

Re: [R] setwd on other computer?

2008-02-29 Thread jim holtman
I can do it under Windows for network mounted files that are on some other system: e.g., setwd(p:/APPS) On 2/29/08, Paul Hammer [EMAIL PROTECTED] wrote: hi members, is it possible to set the work directory ( e.g. via setwd() ) on a other computer than R has been started? thanks paul

[R] Column sums from a data frame (without the headers)

2008-02-29 Thread Jason Horn
Does anyone know how to get a vector of column sum from a data frame? You can use colSums(), but this gives you a object of type numeric with the column labels in the first row, and the sums in the second row. I just want a vector of the sums, and I can't figure out a way to index the

Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Cornelis de Gier
I'm looking for an answer to a similar question: years - as.factor(sort(rep(1987:2006,20))) values - rnorm(1:400,0,10) plot(years,values) results in 20 boxplots with x axis labels unreadable because there are too many of them. How do I reduce the number of x axis labels? Regards, Cornelis

Re: [R] Column sums from a data frame (without the headers)

2008-02-29 Thread Erik Iverson
Jason - colSums does return an object of class numeric, which is certainly a vector. The vector it returns happens to have names. If you want an unnamed vector of the sums, just set the names attribute to NULL. This will remove the names. However, you say you can't figure out how to index

Re: [R] [PS] Column sums from a data frame (without the headers)

2008-02-29 Thread Ben Fairbank
as.vector(col.Sums()) Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Horn Sent: Friday, February 29, 2008 11:03 AM To: [EMAIL PROTECTED] Subject: [PS] [R] Column sums from a data frame (without the headers) Does anyone know how to get a

Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Cornelis de Gier
Well, actually, in Splus I had this problem. In R this problem seems to be solved. Does anyone have an idea how to solve this problem in Splus? Cornelis 2008/2/29, Cornelis de Gier [EMAIL PROTECTED]: I'm looking for an answer to a similar question: years - as.factor(sort(rep(1987:2006,20)))

Re: [R] Column sums from a data frame (without the headers)

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 12:02 -0500, Jason Horn wrote: Does anyone know how to get a vector of column sum from a data frame? You can use colSums(), but this gives you a object of type numeric with the column labels in the first row, and the sums in the second row. I just want a vector of

Re: [R] unbalanced one-way ANOVA

2008-02-29 Thread Douglas Bates
On Fri, Feb 29, 2008 at 10:32 AM, Nauta, A.L. [EMAIL PROTECTED] wrote: I tried a 6-way anova, and indeed found out that changing the order of factors influences the SS, F-ratio's and p-values. So what should I do if I want to know which factor most strongly rejects H0? (H0 is the hypothese of

Re: [R] Column sums from a data frame (without the headers)

2008-02-29 Thread Gabor Csardi
colSums gives you exactly what you want, but the vector is *named*. You can use it like a not-named numeric vector, without much trouble. If you still want to get rid of the names see ?unname G. On Fri, Feb 29, 2008 at 12:02:46PM -0500, Jason Horn wrote: Does anyone know how to get a vector of

Re: [R] setwd on other computer?

2008-02-29 Thread Paul Hammer
Romain Francois schrieb: Hi, This seems to work for me by either mapping a network drive on windows or by using sshfs to mount a remote filesystem on my linux machine. I suppose you would have some sort of side effect in terms of time. Cheers, Romain Paul Hammer wrote: hi members,

[R] Implementation of GMM

2008-02-29 Thread Horace Tso
Hi folks, Is there an implementation of generalized method of moments in R? I did do a help.search but found no hit. Site search found this gmm estimator function in the package sde but not sure what it is. Having browsed the codes in Finmetrics, I naively thought it won't be too hard to

Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 18:12 +0100, Cornelis de Gier wrote: I'm looking for an answer to a similar question: years - as.factor(sort(rep(1987:2006,20))) values - rnorm(1:400,0,10) plot(years,values) results in 20 boxplots with x axis labels unreadable because there are too many of them.

Re: [R] Graphic text

2008-02-29 Thread Maura E Monville
I will try. It looks like the new-line sequence is to be enclosed in single quotes '' because the whole text is inside double quotes . Still it would be nice to have the possibility to pop up a text widget. I know R is a serious statistical tool. But when you have to present your project then

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Michael
On 29 Feb 2008, Frank E. Harrell, Jr. wrote: Several people have given great advice on how to successfully use X11 on Mac to so we can use the dvi previewer to view latex() output from Hmisc. Now after a version upgrade of X11 and X11sdk we are getting lots of crashes. I noticed a Mac

[R] time experiment

2008-02-29 Thread Luís Paulo F. Garcia
How do i for have a time of experiment? Have a package for this? Or function? In my case the time of experiment is learning machining (svm). Tanks :) [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] reducing the number of x-axis lables in a bwplot while plotting all boxes

2008-02-29 Thread Deepayan Sarkar
On 1/7/08, Jeff D. Hamann [EMAIL PROTECTED] wrote: I apologize if this is somewhere in the archives, but I can't seem to find a solution to this question. I've been trying to plot a bwplot: print( bwplot( n.pareto ~ as.factor(gen) | mut.rate * n.pop, data=p6,

Re: [R] compress data on read, decompress on write

2008-02-29 Thread Ramon Diaz-Uriarte
Thanks, Greg. Yes, I'd store the compressed stuff as a raw data type. Best, R. On Thu, Feb 28, 2008 at 11:54 PM, Gregory Warnes [EMAIL PROTECTED] wrote: You might look at storing the data using R's raw data type... -G On Feb 28, 2008, at 5:38PM , Ramon Diaz-Uriarte wrote: Dear

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Charilaos Skiadas
On Feb 29, 2008, at 12:38 PM, Michael wrote: On 29 Feb 2008, Frank E. Harrell, Jr. wrote: Several people have given great advice on how to successfully use X11 on Mac to so we can use the dvi previewer to view latex() output from Hmisc. Now after a version upgrade of X11 and X11sdk we

Re: [R] time experiment

2008-02-29 Thread Luís Paulo F. Garcia
I need in machine clock! Not in seconds. On Fri, Feb 29, 2008 at 2:50 PM, Luís Paulo F. Garcia [EMAIL PROTECTED] wrote: How do i for have a time of experiment? Have a package for this? Or function? In my case the time of experiment is learning machining (svm). Tanks :)

Re: [R] bugs.seed= and summary.only= option in R2WinBUGS

2008-02-29 Thread Uwe Ligges
He, Yulei wrote: Dear R user: I am using R2WinBUGs to call WinBUGS from R. But I have some problems in using either the option bugs.seed and summary.only in the function bugs. Here are the programs and error messages. It appears that if I don't use either option, the program runs

[R] setHook and lattice

2008-02-29 Thread Jim Price
Hi, I am trying to find a way to automate production of page numbers in plots produced using the lattice package. To do this, I started playing around with setHook which works fine with vanilla plot, but the hook 'plot.new' doesn't appear to be relevant to the lattice package. I was wondering if

[R] using zlib (was compress data on read, decompress on write)

2008-02-29 Thread Ramon Diaz-Uriarte
Dear All, I think I am confused about how I'd be able to use zlib starting with R 2.7.0. I just downloaded the latest development version, built it, etc, but I am not able to find the zlib.h that, I believe, R should place somewhere under where/you/want/R/to/go (from

Re: [R] setHook and lattice

2008-02-29 Thread Prof Brian Ripley
See share/perl/massage-examples.pl Hint: lattice is a (very sophisticated) wrapper for grid, and it is grid.newpage() that has the hook. Hint 2: look at the version in the R-devel sources, https://svn.r-project.org/R/trunk/share/perl/massage-Examples.pl for use with lattice. On Fri, 29 Feb

[R] printing tables to a pdf

2008-02-29 Thread Georg Ehret
Dear R community, I wish to print tables into a pdf file. How can this be done, adding headers and several tables to the same file? Thanking you for your attention, Georg. * Georg Ehret Johns Hopkins Baltimore - US [[alternative HTML version deleted]]

Re: [R] using zlib (was compress data on read, decompress on write)

2008-02-29 Thread Prof Brian Ripley
On Fri, 29 Feb 2008, Ramon Diaz-Uriarte wrote: Dear All, I think I am confused about how I'd be able to use zlib starting with R 2.7.0. I just downloaded the latest development version, built it, etc, but I am not able to find the zlib.h that, I believe, R should place somewhere under

[R] inheritence in S4

2008-02-29 Thread cgenolin
Hi the list I define a class A (slot a and b), a class C (slot c and d) and a class E that inherit from A and B. I define print(A) and print(B). For print(C), I would like to use both of them, but I do not see how... Thanks for your help... Christophe

Re: [R] printing tables to a pdf

2008-02-29 Thread Greg Snow
There are a few different ways that this can be accomplished. The method I would suggest is to use one of the variants of Sweave. You can either use the original Sweave (?Sweave) or the odfWeave package. Using the original Sweave you would create a template file that combines LaTeX commands

Re: [R] printing tables to a pdf

2008-02-29 Thread bartjoosen
Hi Georg, see textplot in the gplots package another way is thru sweave and latex, pdf - latex Bart Georg Ehret wrote: Dear R community, I wish to print tables into a pdf file. How can this be done, adding headers and several tables to the same file? Thanking you for your

Re: [R] time experiment

2008-02-29 Thread bartjoosen
A simple RSiteSearch: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/63840.html Bart Luís Paulo F. Garcia wrote: How do i for have a time of experiment? Have a package for this? Or function? In my case the time of experiment is learning machining (svm). Tanks :) [[alternative

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Don MacQueen
The generic way to open an arbitrary file with an arbitrary application in OS X at the command line in a shell window is open -a application_name file_name quoted if there are embedded spaces. One doesn't generally have to give the full path to the application. Digging into help.start()

[R] Column sums from a data frame (without the column headers)

2008-02-29 Thread Jason Horn
Does anyone know how to get a vector of column sum from a data frame? You can use colSums(), but this gives you a object of type numeric with the column labels in the first row, and the sums in the second row. I just want a vector of the sums, and I can't figure out a way to index the

[R] can the matrix size limit be increased?

2008-02-29 Thread Robert Leach
Hi there, I'm brand new to R, so let me know if this question is not appropriate for this list. I've been reading through the documentation and have tried a number of things, but am pretty much stuck so far. Here's the session info: sessionInfo() R version 2.6.2 (2008-02-08)

Re: [R] Graphic text

2008-02-29 Thread Neil Shephard
Hi Maura, Compound quotes can become an absolute nightmare (in any language). R already has Tcl/TK packages, check out the following from CRAN... ade4TKGUI gWidgetstcltk plotAndPlayGTK * RGtk2 * possibly what your after? Also you might find some of the packages listed at the Graphics Task

[R] On the probabilistic distribution

2008-02-29 Thread Munyandorero, Joseph
Dear R Community, I first apoligize to ask statistical questions of general domain, probably beyond the mere use of R. I want to analyze the following type of data with R . Total annual fisheries landings have been reported during 1950-2007 from a given fishery area. I am dealing with annual

[R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Louise Hoffman
Dear readers, I would like to use GNUplot for the plots, but I can't find any information on how to do that. Have anyone tried that? =) Hugs, Louise __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Stefan Grosse
On Friday 29 February 2008 09:37:26 pm Louise Hoffman wrote: LH Dear readers, LH LH I would like to use GNUplot for the plots, but I can't find any LH information on how to do that. LH LH Have anyone tried that? =) LH LH Hugs, LH Louise LH Try http://gnuplot.info/ there is plenty

[R] while loop syntax help

2008-02-29 Thread zack holden
Dear list, I'm trying to write my first looping function in R. After many hours of searching help files and previous posts, I'm at wits end. Please forgive my programming ignorance...any help is greatly appreciated. I need to sort through a vector (x) and identify the point at which 2

Re: [R] while loop syntax help

2008-02-29 Thread jim holtman
Does this give the answer that you want? x - c(5,5,7,6,5,4,3) result - NULL for (i in 1:(length(x) - 2)){ + if ((x[i + 1] x[i]) (x[i + 2] x[i])) result - c(result, i) + } result [1] 3 4 5 On 2/29/08, zack holden [EMAIL PROTECTED] wrote: Dear list, I'm trying to write my first

[R] barplot and pca plot in mvpart/rpart

2008-02-29 Thread shu zhang
Hello, I'm using the R package called mvpart, which is about the multivariate regression trees. The function I wrote is: mrt1- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv=pick,

[R] controlling for number of elements in each node of the tree in mvpart

2008-02-29 Thread shu zhang
Still about the mvpart. Is there any way I can control for the number of elements in each node in the function mvpart? Specifically, how can I ask partition to ignore node with elements less than 10? Thanks! -Shu __ R-help@r-project.org mailing list

Re: [R] using zlib (was compress data on read, decompress on write)

2008-02-29 Thread Ramon Diaz-Uriarte
Dear Prof. Ripley, Thanks for your reply. I think I understand now. Best, R. On Fri, Feb 29, 2008 at 7:36 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Fri, 29 Feb 2008, Ramon Diaz-Uriarte wrote: Dear All, I think I am confused about how I'd be able to use zlib starting with

Re: [R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Louise Hoffman
[snip] Seriously. Be specific if you have a problem. (read the posting guide). R can also plot. If you don't like R's plots (which I could not understand) you can export data and import them to gnuplot. So what? Okay, my post was not very good. The reason (I think) I need GNUplot, is that

Re: [R] barplot and pca plot in mvpart/rpart

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 16:46 -0500, shu zhang wrote: Hello, I'm using the R package called mvpart, which is about the multivariate regression trees. The function I wrote is: mrt1- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv=pick,

Re: [R] controlling for number of elements in each node of the tree in mvpart

2008-02-29 Thread Gavin Simpson
On Fri, 2008-02-29 at 16:48 -0500, shu zhang wrote: Still about the mvpart. Is there any way I can control for the number of elements in each node in the function mvpart? Specifically, how can I ask partition to ignore node with elements less than 10? mvpart is just a wrapper to (a modified

Re: [R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Gabor Csardi
I believe that R can export all formats that GNUplot can produce, so i don't really see why you want to use GNUplot if you don't know it. If you still want to then read ?write.table, that can export your data into a spreadsheet-like ascii format which can be used from GNUplot easily. Btw,

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Michael
On 29 Feb 2008, Charilaos Skiadas wrote: On Feb 29, 2008, at 12:38 PM, Michael wrote: On 29 Feb 2008, Frank E. Harrell, Jr. wrote: Several people have given great advice on how to successfully use X11 on Mac to so we can use the dvi previewer to view latex() output from Hmisc.

[R] Fitting long names in boxplot

2008-02-29 Thread Alex Reynolds
I have the following code: subsetTimeDataPlot - boxplot(subsetTimeData$time ~ subsetTimeData$build, horizontal=True, col=lightblue, ...) The 'names' component consists of strings that can be up to 20-30 characters long. How would I go about drawing the names vertically (not the boxplot) or

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Charilaos Skiadas
On Feb 29, 2008, at 5:39 PM, Michael wrote: On 29 Feb 2008, Charilaos Skiadas wrote: On Feb 29, 2008, at 12:38 PM, Michael wrote: On 29 Feb 2008, Frank E. Harrell, Jr. wrote: Several people have given great advice on how to successfully use X11 on Mac to so we can use the dvi previewer

Re: [R] Running LaTeX dvi previewer on MacOS X

2008-02-29 Thread Michael
On 29 Feb 2008, Charilaos Skiadas wrote: Why is it important that the output file be a dvi file? Would it be a problem to have the latex() function produce a pdf file on mac systems? That was what I was saying. I thought the latex() command was just producing tex code. By defaults it

Re: [R] Make plots with GNUplot. Have anyone tried that?

2008-02-29 Thread Louise Hoffman
If you still want to then read ?write.table, that can export your data into a spreadsheet-like ascii format which can be used from GNUplot easily. Very interesting. So if I e.g. write: ts.sim - arima.sim(list(order = c(1,1,0), ar = 0.7), n = 200) ts.plot(ts.sim) How do I know the names of

Re: [R] can the matrix size limit be increased?

2008-02-29 Thread jim holtman
You only have 1 row in your matrix, so what you are getting printed out is not an empty matrix, but the header. If you print the transpose you get: head(t(tst)) [,1] [1,]1 [2,]2 [3,]3 [4,]4 [5,]5 [6,]6 The default is to only print out 10 values. Your data is

  1   2   >