Re: [R] 'non-standard' folder names in R package

2007-07-31 Thread Tao Shi
Oops, somehow I missed that part. Thank you very much! Tao >From: Uwe Ligges <[EMAIL PROTECTED]> >To: Tao Shi <[EMAIL PROTECTED]> >CC: r-help@stat.math.ethz.ch >Subject: Re: [R] 'non-standard' folder names in R package >Date: Tue, 31 Jul 2007 11:52:10

[R] 'non-standard' folder names in R package

2007-07-30 Thread Tao Shi
Hi list, I use a .xml file for a function's demo in the R package I'm creating. Since it doesn't belong to any of the 'standard' folders, i.e. those mentioned in the 'Writing R Extension', I put it in a folder call "myXML", much like the 'iris.xl' file in 'xls' folder from 'gdata' package, fo

Re: [R] Creating windows binary R package (PowerArchiver vs. zip -r9X)

2007-07-28 Thread Tao Shi
Thanks, Uwe! It workedTao> Date: Fri, 27 Jul 2007 09:16:49 +0200> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: r-help@stat.math.ethz.ch> Subject: Re: [R] Creating windows binary R package (PowerArchiver vs. zip -r9X)> > > > Tao Shi wrote:> > Hi

[R] Creating windows binary R package (PowerArchiver vs. zip -r9X)

2007-07-26 Thread Tao Shi
Hi list,I apologize if you see funny fonts, b/c I'm using the new Windows Live Hotmail and don't know how to turn off the "rich text" mode.I have successfully built and installed a R package in windowsXP for R-2.5.1. But when I tried to create a .zip file so I can use "Packages/install pack

Re: [R] How to extract R codes that embedded in a HTML file

2007-05-18 Thread Tao Shi
Works perfectly! Thank you very much, Fritz! Tao From: Friedrich Leisch <[EMAIL PROTECTED]> To: Tao Shi <[EMAIL PROTECTED]>, [EMAIL PROTECTED], [EMAIL PROTECTED], r-help@stat.math.ethz.ch Subject: Re: [R] How to extract R codes that embedded in a HTML file Date: Fri,

Re: [R] How to extract R codes that embedded in a HTML file using Stangle?

2007-05-17 Thread Tao Shi
o there is no proper driver available (like RweaveHTML driver for Sweave)? If yes, does R2HTML package have plans to provide a such driver? Tao >From: Uwe Ligges <[EMAIL PROTECTED]> >To: Tao Shi <[EMAIL PROTECTED]> >CC: r-help@stat.math.ethz.ch >Subject: Re: [R] Ho

[R] How to extract R codes that embedded in a HTML file using Stangle?

2007-05-15 Thread Tao Shi
I'm using R2HTML package to generate reports, but don't know how to extract R codes from .rnw files using "Stangle". It seems "Stangle" only works on ..tex file that has R codes embedded. Thanks, Tao _ Hotmail.

Re: [R] can't use Sweave in a function?

2007-05-11 Thread Tao Shi
;f1" rm(list=ls()) ls() character(0) f1 <- function() { + y <- 1:5 + x <- "ABC" + #save(x,y, file="tmp.RData") + save(list=ls(all=TRUE), file="tmp.RData") + #save.image("tmp.RData") + #Sweave("test.rnw", driver=RweaveHTML) + } f1()

[R] can't use Sweave in a function?

2007-05-10 Thread Tao Shi
Hi List, Please see the following simple example which illustrate the problem. I'm using R-2.5.0 in WinXP and R2HTML 1.58. Thanks, Tao #="test.rnw" = Report <>= print(y) print("\n") print(paste("(", x, ")", sep="")) @ #==

[R] a question regarding 'lrm'

2006-10-02 Thread Tao Shi
Hi List, I don't understand why 'lrm' doesn't recognize the '~.' formula. I'm pretty sure it was working before. Please see below: I'm using R2.3.0, WinXP, Design 2.0-12 thanks, ...Tao > dat <- data.frame(y=factor(rep(1:2,each=50)), x1=rnorm(100), x2=rnorm(100), > x3=rnorm(100)) > lrm(y~., d

Re: [R] an error message with 't.test' with R under Unix

2006-09-13 Thread Tao Shi
ROTECTED] > CC: r-help@stat.math.ethz.ch > Subject: Re: [R] an error message with 't.test' with R under Unix > From: [EMAIL PROTECTED] > Date: Wed, 13 Sep 2006 23:52:04 +0200 > > "Tao Shi" <[EMAIL PROTECTED]> writes: > > > Hi list,Could you please help

[R] an error message with 't.test' with R under Unix

2006-09-13 Thread Tao Shi
Hi list,Could you please help me to explain the following error messages with 't.test' in R Unix 2.1.1? I don't see it in R under Windows (R 2.3.0) or Unix (R2.3.1). Is it really due to the different R versions?Thanks,...TaoUnix session: (R.2.1.1)> R.version _

Re: [R] a problem 'cor' function

2006-05-31 Thread Tao Shi
> pl <- iris[101:150, 3]> > all.equal(cor(pl,pl), 1)> [1] TRUE> cor(pl,pl) == 1> [1] FALSE> > sprintf("%1.22g", cor(pl, pl))> [1] "0.99989"> > sprintf("%1.22g", pl)> [1] "6"

[R] a problem 'cor' function

2006-05-31 Thread Tao Shi
Hi list, One of my co-workers found this problem with 'cor' in his code and I confirm it too (see below). He's using R 2.2.1 under Win 2K and I'm using R 2.3.0 under Win XP. === > R.Version() $platform [1] "i386-pc-mingw32" $arch [1] "i386" $os [1] "mi

[R] zlim for levelplot

2005-07-01 Thread Tao Shi
__ 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] hclust, centroid

2004-09-10 Thread Tao Shi
Does anyone know how hclust (stats) calculates centroid linkage if only a distance matrix can be used as the input? ...Tao __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-proj

[R] RE: [Rd] a simple suggestion for the next version of R windows

2004-04-24 Thread Tao Shi
windows, b/c all you see are "R console"s... ...Tao Original Message Follows From: "Liaw, Andy" <[EMAIL PROTECTED]> To: "'Tao Shi'" <[EMAIL PROTECTED]>,[EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: RE: [Rd] a simple suggestion fo

[R] a simple suggestion for the next version of R windows

2004-04-24 Thread Tao Shi
Is it possible to replace the word "R Console" on the title bar (is it what it's called? It's the blue area above menu bar) with the name of the work space file you're using or loaded, so people who are runing multple R sessions at same time can identify them immediately. I'm using 1.9.0 in SDI

[R] a question regarding 'cor' function

2004-03-04 Thread Tao Shi
I'm a little bit confused with how exactly the 'cor' function handles missing values. Should the last two function calls give the same results? Thanks, ...Tao == x=rnorm(10) y=rnorm(10) x[1]=NA y[2]=NA cor(x,y,method="spearman") [1] -0.006060606 cor(x,

[R] Why two chisq.test p values differ when the contingency tableis transposed?

2003-07-15 Thread Tao Shi
I'm using R1.7.0 runing with Win XP. Thanks, ...Tao x [,1] [,2] [1,] 149 151 [2,]18 t(x) [,1] [,2] [1,] 1491 [2,] 1518 chisq.test(x, simulate.p.value=T, B=10) Pearson's Chi-squared test with simulate