[R] Sweave and X11 on OSX 10.3

2004-01-06 Thread Kieran Healy
Hi - I'm running R 1.8.1 (compiled from source) on Mac OS X 10.3 (Panther). I find that, if Apple's X11 application is not running, Sweave gives an error when it wants to create a pdf or eps figure. E.g., in the package's own example-1.Snw file a boxplot is created at chunk 2: <>= boxplot(Ozone ~

[R] length of tick marks in grid.xaxis and grid.yaxis

2004-01-06 Thread Renaud Lancelot
Dear all, How can I control the length of tick marks in grid.xaxis and grid.yaxis (package grid) ? Best regards, Renaud -- Dr Renaud Lancelot vétérinaire épidémiologiste Ambassade de France - SCAC BP 834 Antannarivo 101 Madagascar tél. +261 (0)32 04 824 55 (cell) +261 (0)20 22 494 37 (hom

Re: [R] dist(x,y)

2004-01-06 Thread Gabor Grothendieck
If a is m x r and b is n x r then apply(outer(a,t(b),"-"),c(1,4),function(x)sqrt(sum(diag(x*x is the m x n matrix of distances between the m rows of a and n rows of b. Modify, as necessary, if you want distances other than euclidean. --- Date: Tue, 6 Jan 2004 13:07:41 -0500 From: <[

RE: [R]

2004-01-06 Thread Gabor Grothendieck
One thing to watch out for is adjustments: - if the data is not adjusted for dividends and splits then you may be able to just download data since your last download yourself but depending on what you want to do with the data you may get misleading results. For example, if the stock trades at $

RE: [R] .Rdata file size

2004-01-06 Thread Liaw, Andy
No. I've dealt with .RData files in excess of 1GB several times. The limit is likely with your hardware, which you did not specify. Andy > From: Mike Jones > > Is there a limit to this? I'm working with a .Rdata file > about 190 Mgs in > size and R won't open it...thanks...mj

Re: [R] Grouping data.frames

2004-01-06 Thread Peter Dalgaard
Olaf Mersmann <[EMAIL PROTECTED]> writes: > Hello all, > > I'm new to R (and the S language in general) so go easy on me if this is really > simple. > > Given a data.frame df which looks like this: > f1 f2 f3 f4 c1 c2 > 1 y y a b 10

[R] Grouping data.frames

2004-01-06 Thread Olaf Mersmann
Hello all, I'm new to R (and the S language in general) so go easy on me if this is really simple. Given a data.frame df which looks like this: f1 f2 f3 f4 c1 c2 1 y y a b 10 20 2 n y b a 20

[R] .Rdata file size

2004-01-06 Thread Mike Jones
Is there a limit to this? I'm working with a .Rdata file about 190 Mgs in size and R won't open it...thanks...mj [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Problem reading large tables

2004-01-06 Thread Daniel Sumers Myers
Thanks to all, it was a conversion problem (now fixed). Daniel On Tue, Jan 06, 2004 at 02:43:22PM -0500, Duncan Murdoch wrote: > On Tue, 6 Jan 2004 14:03:47 -0500, Daniel Sumers Myers > <[EMAIL PROTECTED]> wrote : > > >Hi, > > I'm trying to read in a fairly large (92 observations by 3680 va

Re: [R] Problem reading large tables

2004-01-06 Thread Duncan Murdoch
On Tue, 6 Jan 2004 14:03:47 -0500, Daniel Sumers Myers <[EMAIL PROTECTED]> wrote : >Hi, > I'm trying to read in a fairly large (92 observations by 3680 variables) >table into R from a space-delimited text file (attached) using the command: d8 ><- read.table('d8.r', header=T). The function c

[R] Problem reading large tables

2004-01-06 Thread Daniel Sumers Myers
Hi, I'm trying to read in a fairly large (92 observations by 3680 variables) table into R from a space-delimited text file (attached) using the command: d8 <- read.table('d8.r', header=T). The function call runs to completion, and I get back a valid table object. However, starting at colum

Re: [R] build R package on winXP

2004-01-06 Thread Jing Wu
Thanks. I changed TMPDIR and TMP to c:\Temp. But "Rcmd build" failed again. This time the problem is the path of "make". Although I put C:\bin in front of path but "build" went to $R_home/bin to find "make". "Rcmd make" was succesful before. I think the path is still not correct. Jing On Tue, 6 J

Re: [R] dist(x,y)

2004-01-06 Thread ryszard . czerminski
Hi Erin, CLARIFICATION: I am looking for function which can calculate distances between rows in two different matrices (not in the same matrix as dist). Of course I can get the desired result by using rbind() and fiddling with indices of the result, which I already did, but I wonder if there is

Re: [R] build R package on winXP

2004-01-06 Thread Duncan Murdoch
On Tue, 6 Jan 2004 11:18:02 -0500 (EST), Jing Wu <[EMAIL PROTECTED]> wrote : > I think the Path >"Program Files" should be substitute with "PROGRA~1" but what I should use >for "Documents and Settings"? Thanks a lot for your help. This works in XP: Open a command window (Start | Run | cmd), then

[R] Course***Advanced R/Splus Programming***January 2004 by XLSolutions Corp.

2004-01-06 Thread elvis
Happy New Year XSolutions Corp ([1]www.xlsolutions-corp.com) is proud to announce a 2-day "Advanced R/Splus programming" taught by R Development Core Team Guru. *Princeton, NJ -- January 29-30, 2004 *San Francisco -- January 15-16, 2004 **

[R] dist(x,y)

2004-01-06 Thread Erin Hodgess
Hi Ryszard! There is a dist function in R. It's in the mva package. You can set the kind of distance that you want. Thanks, Erin mailto:[EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Problem while reading .csv files

2004-01-06 Thread Tony Plate
You might get more useful answers if you gave more information about exactly what you did. My wild guess is that you are sourcing a file (with the function source()), the first line of which is the QQQ<-..., and the second line of which has a syntax error. One of the nice things about R is tha

[R] Problem while reading .csv files

2004-01-06 Thread Ashutosh Tayshete
I have this line at the start of my code file. QQQ<-read.csv("c:/QQQ.csv", header=TRUE,row.names=1) And I get an error ... Error in parse(file, n, text, prompt) : syntax error on line 2 What does this error mean and how can I correct it? What is the standard way I can read from a .csv file. T

Re: [R] comparing classification methods: 10-fold cv or leaving-one-out ?

2004-01-06 Thread Tony Plate
I would recommend reading the following: Dietterich, T. G., (1998). Approximate Statistical Tests for Comparing Supervised Classification Learning Algorithms. Neural Computation, 10 (7) 1895-1924. http://web.engr.oregonstate.edu/~tgd/publications/index.html The issues in comparing methods are

Re: [R] Constructing a lm for predict() by hand

2004-01-06 Thread Tony Plate
One relatively easy way would be to construct some dummy data with the appropriate names and formula, use lm() to construct the model object, and then change the coefficients in the model object to be what you want (e.g., by fit$coefficients[2] <- 0.79). This should then work with predict().

Re: [R] build R package on winXP

2004-01-06 Thread Jing Wu
Dear Professor Ripley, Sorry I didn't get what the manual says. I read readme.package and also R for Windows Users several times but the pieces didn't come together. Your guess is right. The TMPDIR was set to c:\Documents and Settings\ and I didn't know this was a problem since I only checked Path

Re: [R] comparing classification methods: 10-fold cv or leaving-one-out ?

2004-01-06 Thread Prof Brian Ripley
Leave-one-out is very inaccurate for some methods, notably trees, but fine for some others (e.g. LDA) if used with a good measure of accuracy. Hint: there is a very large literature on this, so read any good book on classification to find out what is known. On Tue, 6 Jan 2004, Christoph Lehmann

[R] dist(x, y) ???

2004-01-06 Thread ryszard . czerminski
Is there a function in R (similar to dist) which would calculate distances between rows in two different matrices ? Ryszard __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://

[R] comparing classification methods: 10-fold cv or leaving-one-out ?

2004-01-06 Thread Christoph Lehmann
Hi what would you recommend to compare classification methods such as LDA, classification trees (rpart), bagging, SVM, etc: 10-fold cv (as in Ripley p. 346f) or leaving-one-out (as e.g. implemented in LDA)? my data-set is not that huge (roughly 200 entries) many thanks for a hint Christoph --

Re: [R] proxy

2004-01-06 Thread Dirk Eddelbuettel
On Tue, Jan 06, 2004 at 10:56:38AM -0400, [EMAIL PROTECTED] wrote: > Hi all; > > I?m working with the latest version of R under Win2000. My internet connection > (using a proxy) requires my username and password. In this situation I?m > not able to update the packages from CRAN (unless I download

Re: [R] help on rmeta

2004-01-06 Thread Thomas Lumley
On Tue, 6 Jan 2004, Francesca Buffa wrote: > Hello > > > > I'm trying to plot hazard risk values using the function metaplot with > the specifications: > > > metaplot(HR,SE,W,labels=row.names(lc),xlab="Hazard > Ratio",ylab="Covariates", > logeffect=TRUE,logticks=FALSE,colors=meta.colors(box="black

Re: [R] Error running as.phylo (package ape)

2004-01-06 Thread Emmanuel Paradis
At 18:29 04/01/2004 -0200, vous avez écrit: Hi all, I try to convert hclust object to phylo object, using as.phylo (package ape), but got an error like the following: > tese<- read.table ("tese_guildas.txt", header=T) > library(mva) > library(ape) > hclust.tree<-hclust(dist(tese[1:156,])) > phyl

Re: [R] proxy

2004-01-06 Thread Duncan Murdoch
On Tue, 6 Jan 2004 10:56:38 -0400, [EMAIL PROTECTED] wrote : >Hi all; > >I?m working with the latest version of R under Win2000. My internet connection >(using a proxy) requires my username and password. In this situation I?m >not able to update the packages from CRAN (unless I download and instal

[R] Constructing a lm for predict() by hand

2004-01-06 Thread Alexander Wise
Hello, this probably seems like an odd question, but... If I have the formula and the coefficients for a linear model that I would like to apply to some data using predict() -- is there a way I construct an object of type lm such that predict() will work with it? Or another way besides predict(

[R] help on rmeta

2004-01-06 Thread Francesca Buffa
Hello I'm trying to plot hazard risk values using the function metaplot with the specifications: > metaplot(HR,SE,W,labels=row.names(lc),xlab="Hazard Ratio",ylab="Covariates", logeffect=TRUE,logticks=FALSE,colors=meta.colors(box="black",lines="dark gray",zero="darkgray"),cex=1.5,cex.lab=1.5,fo

[R] proxy

2004-01-06 Thread christian_mora
Hi all; I?m working with the latest version of R under Win2000. My internet connection (using a proxy) requires my username and password. In this situation I?m not able to update the packages from CRAN (unless I download and install them from a local drive). I tried looking at information on the l

[R] numerical derivative

2004-01-06 Thread Z P
Dear all, I now want to get the numerical derivative of some multivariate function y=f(x_1,...,x_k) at some specific point x_0=(x_10,...,x_k0). I know deriv() funtion can give the numerical derivative when f is an known fuction. Now the f is an unknown fuction, but I can give many points x_i=(

Re: [R] Analyzing dendograms??

2004-01-06 Thread Sean Davis
Johan, This is possible. It is not an interactive process, though--R does not have that capability with heatmap. See ?cutree which you can apply to gclus to get the indices of genes in clusters that you define based on the dendrogram and then use these genes as input to heatmap (this will amount

RE: [R] Analyzing dendograms??

2004-01-06 Thread Johan Lindberg
Id like to thank you guys how have taken the time to look into my problem. I think the question drifted away from my original question as Simon Fear said. What I wanted to know was the following: ""I have used heatmap to visualize my microarray data. I have a matrix of M-values. I do the follow

Re: [R] "Smart update" utility (or coding) for data files

2004-01-06 Thread Prof Brian Ripley
On Tue, 6 Jan 2004, Uwe Ligges wrote: > Ashutosh Tayshete wrote: > > > Hi, > > > > I am a new user of R and this is my first e-mail here. Please enlighten me > > on any etiquette issues I may have overstepped on. > > > > My questions is as follows: > > > > I need to do some data analysis for d

Re: [R] "Smart update" utility (or coding) for data files

2004-01-06 Thread Uwe Ligges
Ashutosh Tayshete wrote: Hi, I am a new user of R and this is my first e-mail here. Please enlighten me on any etiquette issues I may have overstepped on. My questions is as follows: I need to do some data analysis for data from .csv files for stocks (that I have obtained from yahoo) How can I d

Re: [R] build R package on winXP

2004-01-06 Thread Uwe Ligges
Jing Wu wrote: On Mon, 5 Jan 2004, Prof Brian Ripley wrote: On Mon, 5 Jan 2004, Jing Wu wrote: I wrote an R function and want to build an R package on winXP. I have set my path:C:\bin;C:\MinGW\bin;C:\Perl\bin\;C:\Tcl\bin;C:\texmf\miktex\bin;C:\Program Files\R\rw1081\bin; I tried to run "Rcmd b

Re: [R] build R package on winXP

2004-01-06 Thread Prof Brian Ripley
On Mon, 5 Jan 2004, Jing Wu wrote: > > On Mon, 5 Jan 2004, Jing Wu wrote: > > > > > I wrote an R function and want to build an R package on winXP. I have > > > set my > > > path:C:\bin;C:\MinGW\bin;C:\Perl\bin\;C:\Tcl\bin;C:\texmf\miktex\bin;C:\Program > > > Files\R\rw1081\bin; > > > > > > I tried

Re: [R] runif and sample with reproducibility

2004-01-06 Thread Petr Pikal
Hallo I think I have seen an answer to it but did not search for it. set.seed() with sample() is perfectly reprodicble for me (well, I tried it only three times :-) > set.seed(111) > sample(1:100,10) [1] 8 93 38 14 23 51 86 31 75 34 > set.seed(111) > sample(1:100,10) [1] 8 93 38 14 23 51 86