Re: [R] How limits are set in a scales list

2003-09-09 Thread Deepayan Sarkar
On Monday 08 September 2003 23:36, Patrick Connolly wrote: I have a lattice plot that has 4 pages with 4 columns and 8 rows per page. I wish to have the rows use a separate x-axis since their ranges are quite different, but I wish to have those same limits used on each page. By setting an

Re: [R] Yet another beginner question

2003-09-09 Thread Uwe Ligges
Peter Flom wrote: Thanks for all the help on my earlier questions. How do you plot a simple time series with unequal intervals? I have the following dateofpoll - as.ts(c(6/1/02, 7/1/02, 10/1/02, 1/4/03, 1/25/03, 6/7/03, 7/16/03, 8/17/03, 9/4/03)) reelect - c(51, 47, 49, 51, 49, 49, 46, 45,

RE: [R] memory problem in exporting data frame

2003-09-09 Thread Henrik Bengtsson
Hi, I replied to a related question yesterday (Mon Sept 8, 2003) with subject RE: [R] cannot allocate vector of size That was as also about running low of memory, but about *reading* data from file and not writing. However, the problem is likely to be due to the same thing. You pass a large

Re: [R] R video

2003-09-09 Thread Thomas Petzoldt
David Khabie-Zeitoune schrieb: Hi Does anybody know of any R packages under Windows to produce video files from a sequence of R graphs -- e.g. in .wmv or avi format? Hello, some times ago I've testet several methods and found the following to be useful and effective: 1.) Create a numbered

Re: [R] Matrix resampling (bootstraps)

2003-09-09 Thread Ernesto Jardim
On Tue, 2003-09-09 at 05:11, Hector L. Ayala-del-Rio wrote: Dear all, I am trying to generate bootstrap replicate matrixes (rows=samples, column=species, sampling with replacement) from a matrix dataset, but I do not know how to do it in R. I have tried boot() and bootstrap(), but they

Re: [R] lattice plot - portrait / landscape

2003-09-09 Thread Andrew C. Ward
Dear Manbub, I assume that you mean you want the boxes to be vertical rather than horizontal (which is the default). Compare the following two uses of bwplot: data(singer) bwplot(voice.part ~ height, data=singer, xlab=Height (inches)) bwplot(height ~ voice.part, data=singer, ylab=Height

Re: [R]: RODBC column length255

2003-09-09 Thread simon_gibbon
Dear Wayne, I had similar problems and as Andrew Ward suggests you can overcome them by recompiling the RODBC code, which is what I did after Professor Ripley's kind advice for Windows. I am now able to read in 64K character strings. However, as of version 1.0.2 the source code sets a 64K

Re: [R] How to convert a Rd file into multi html files?

2003-09-09 Thread Philipp Pagel
Hi! On Tue, Sep 09, 2003 at 04:17:25AM -0700, Yiming Zhou wrote: The command I used was ' R CMD Rdconv -t html foo.Rd'. It just converted the document of first object in .Rd into html format. I'm not exactly an expert in writing R documentation but while playing arround with package

RE: [R] No joy installing R with shared libs

2003-09-09 Thread Arne.Muller
Hi, I've experienced similar failures with the RSperl installation. So I'd be interested if someone sorts out the library misery ... ;-) Arne -Original Message- From: Laurent Faisnel [mailto:[EMAIL PROTECTED] Sent: 09 September 2003 12:48 To: [EMAIL PROTECTED] Subject: Re:

[R] Making R packages

2003-09-09 Thread Gattuso, Jean-Pierre
Hi: I am posting this message for a colleague who has a lot of trouble to build an R package on Windows. He did not find a solution to his problems on the R-help archives and hopes that one of the R gurus will be able to help. He has a directory CO2 which should contain all the required

Re: [R] Making R packages

2003-09-09 Thread Duncan Murdoch
On Tue, 9 Sep 2003 14:39:53 +0200, you wrote: Then he gets the following error (approximate translation of a French message) : Perl is not recognized as an internal or external command, an executable file or a command file Perl has of course been installed on the PC and my colleague

RE: [R] Making R packages

2003-09-09 Thread Wayne Jones
Try adding C:\Perl\bin\; to your path variable. -Original Message- From: Gattuso, Jean-Pierre [mailto:[EMAIL PROTECTED] Sent: 09 September 2003 13:40 To: [EMAIL PROTECTED] Subject: [R] Making R packages Hi: I am posting this message for a colleague who has a lot of trouble to build

Re: [R] Hardware oddity - linux/windows

2003-09-09 Thread Prof Brian Ripley
Do you have an anti-virus software running? That's about what I see when Sophos is switched on. On 9 Sep 2003, michaell taylor wrote: Hi, I am trying to figure out why a new machine is running my R script so slowly. The script was developed on a Linux , dual 2.8 xeon processor

RE: [R] Changing Tick Marks for Date Plots

2003-09-09 Thread Heywood, Giles
The way to control number of tickmarks in plot is via par(lab) par(lab=c(5,5,7)) #the default plot(rnorm(20),rnorm(20)) par(lab=3*c(5,5,7)) plot(rnorm(20),rnorm(20)) However this does not work for axis.POSIXct, which the function called by the plot method for 'its'. I am not sure why this is.

[R] charge a vector with variables and to use as variable in a checkbutton?

2003-09-09 Thread solares
hello, how i cant to charge in form dynamic a checkbutton, try to do it with a vector be charged automaticamente but not works, for example library(tcltk) tt-tktoplevel() f-tkframe(tt) tkpack(f) i-2 if (i==1) {b1-tkcheckbutton (f,text=b1,variable=b1,relief=raised);tkpack(b1);print(tclvalue

Re: [R] How do I coerce numeric factor columns of data frame to vector?

2003-09-09 Thread Na Li
On 9 Sep 2003, Michael A. Miller outgrape: Thomas == Thomas W Blackwell [EMAIL PROTECTED] writes: Michael - Because these columns are factors to begin with, using as.numeric() alone will have unexpected results. See the section Warning: in help(factor). Ah, thanks for

Re: [R] tree mortality risk model using glm()

2003-09-09 Thread Thomas Lumley
On Tue, 9 Sep 2003, Tord Snall wrote: Dear all, I've used glm(family=binomial(link=logit)) several times, but now I think that a log link is more appropriate. I want to fit a model for probability of tree fall (TF)), with tree diameter (dbh) and soil moisure (soil) as predictors. A large

Re: [R] Stifling REprintf() output

2003-09-09 Thread Thomas Lumley
On Mon, 8 Sep 2003, Jeff Gentry wrote: In some code that I have written, use of url() is generating the output line: cannot open: HTTP status was `404 Not Found` My fault. This used to use error(), but as you will recall, the result was that the connection wasn't freed and getBioC() leaked

Re: [R] How do I coerce numeric factor columns of data frame to vector?

2003-09-09 Thread Peter Dalgaard BSA
Martin Maechler [EMAIL PROTECTED] writes: as.numeric (levels (y)[as.numeric (y)]) NaLi [1] 1 3 1 NaLi which is a bit awkward. as.numeric(as.character(y)) ! {in some cases you might consider using as.integer() instead of as.numeric()} Better to convert first and then index:

Re: [R] Cross-platform compatibility with R?

2003-09-09 Thread Uwe Ligges
Joseph Ortiz wrote: Dear All, I'm a newbie to R having just switched from S-Plus. I was able to port my files from S-Plus for Linux to R for OSX using the S-Plus data.dump, and the R data.restore commands. I've decided that I like R enough to install it on my Linux box, but I can't figure out

Re: [R] Cross-platform compatibility with R?

2003-09-09 Thread Douglas Bates
Joseph Ortiz [EMAIL PROTECTED] writes: Dear All, I'm a newbie to R having just switched from S-Plus. I was able to port my files from S-Plus for Linux to R for OSX using the S-Plus data.dump, and the R data.restore commands. I've decided that I like R enough to install it on my Linux

Re: [R] ploting 2 variables in a lattice xyplot

2003-09-09 Thread Ernesto Jardim
On Tue, 2003-09-09 at 16:35, Douglas Bates wrote: Ernesto Jardim [EMAIL PROTECTED] writes: Hi, I want to plot 2 variables (confidence intervals) in a single xyplot. I have a dataframe with variables Yup, Ylo, X and Z and I want to have a xyplot with both variables ploted. I'm trying

RE: [R] memory problem in exporting data frame

2003-09-09 Thread array chip
Hi all, Thanks for all the suggestions. I was able to get the data frame out by first deleting some other large objects in the directory, and then changing the data frame into matrix by as.matrix(), splitting the matrix into 4 blocks and finally using write.table() to write the matrix into 4

Re: [R] memory problem in exporting data frame

2003-09-09 Thread Peter Dalgaard BSA
array chip [EMAIL PROTECTED] writes: Hi all, Thanks for all the suggestions. I was able to get the data frame out by first deleting some other large objects in the directory, and then changing the data frame into matrix by as.matrix(), splitting the matrix into 4 blocks and finally using

Re: [R] How to convert a Rd file into multi html files?

2003-09-09 Thread Paul Gilbert
Paul Gilbert wrote: The R packaging programs expect one .Rd file for each function, ... Sorry, this was not exactly correct. It expects one .Rd file for each documentation item (man page) indicated by \name{}, but that can document more than one function. Paul Gilbert

Re: [R] How do I coerce numeric factor columns of data frame to vector?

2003-09-09 Thread Michael A. Miller
Na == Na Li [EMAIL PROTECTED] writes: x - c(1, 3, 1) y - factor (x) y [1] 1 3 1 Levels: 1 3 as.numeric (y) [1] 1 2 1 Ah, now I get it - thanks! Mike __ [EMAIL PROTECTED] mailing list

Re: [R] ploting 2 variables in a lattice xyplot

2003-09-09 Thread Deepayan Sarkar
On Tuesday 09 September 2003 10:35 am, Douglas Bates wrote: Ernesto Jardim [EMAIL PROTECTED] writes: Hi, I want to plot 2 variables (confidence intervals) in a single xyplot. I have a dataframe with variables Yup, Ylo, X and Z and I want to have a xyplot with both variables ploted. I'm

RE: [R] memory problem in exporting data frame

2003-09-09 Thread Henrik Bengtsson
-Original Message- From: array chip [mailto:[EMAIL PROTECTED] Sent: den 9 september 2003 19:04 To: Henrik Bengtsson; 'Thomas W Blackwell'; Patrick Burns Cc: [EMAIL PROTECTED] Subject: RE: [R] memory problem in exporting data frame Hi all, Thanks for all the suggestions. I

[R] Computing a CDF or many quantiles

2003-09-09 Thread Kevin S. Van Horn
Given f, a pdf over a finite interval, is there any existing R function that can efficiently tabulate the cumulative distribution function for f, or produce all N+1 quantiles of the form i/N? Efficiently here means better than doing repeated integrations for each point.

RE: [R] recording and taking mean of a set of matrices

2003-09-09 Thread Adaikalavan RAMASAMY
mean(list(m1, m2)) will not work. mylist - list(m1, m2) sapply( mylist, FUN=mean ) gives will give you the mean of m1 and m2 sapply( mylist, FUN= function(x) apply(x, 2, mean) ) will give you the column means of m1 and m2 in a matrix format. Double check the resulting dimension. Here are

Re: [R] recording and taking mean of a set of matrices

2003-09-09 Thread Gabor Grothendieck
Just one small comment. R stores arrays in reverse odometer order, i.e. the leftmost subscript varies fastest. Thus, you might want to use the last subscript to represent the simulation number rather than the first. That way, the entire vector or matrix is stored together (i.e. contiguously in

Re: [R] recording and taking mean of a set of matrices

2003-09-09 Thread Spencer Graves
If all you want are the means of the statistics, then you may not need to store all the individual simulation results. What about the following: N - 9 # number of simulations k - 3 # number of coefficients CoefSum - rep(0, k) names(CoefSum) - letters[1:k] VarSum - array(0, dim=c(k, k))

RE: [R] recording and taking mean of a set of matrices

2003-09-09 Thread Richard A. O'Keefe
If there are a _lot_ of results, and they are not needed until after the simulations have all run, it's always possible to write them out to a file or files and then use scan() or read.table() or something like that to read them back in. __ [EMAIL