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 +0200 Tao Shi wrote: Hi list, I use a .xml

[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, for

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 list,I apologize if you see funny fonts, b/c I'm

[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

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, 18 May 2007 15

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

2007-05-17 Thread Tao Shi
to 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] How to extract R codes that embedded

[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
(test.rnw, driver=RweaveHTML) + } f1() ls() [1] f1 load(tmp.RData) ls() [1] f1 x y From: Duncan Murdoch [EMAIL PROTECTED] To: Tao Shi [EMAIL PROTECTED] CC: r-help@stat.math.ethz.ch Subject: Re: [R] can't use Sweave in a function? Date: Thu, 10 May 2007 21:46:27 -0400 On 10/05/2007 9:08 PM, Tao

[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 = html body div h1 align=centerReport/h1 p echo=FALSE,results=html= print(y) print(\n) print(paste((, x,

[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~.,

[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] an error message with 't.test' with R under Unix

2006-09-13 Thread Tao Shi
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 me to explain the following error messages with 't.test' in R Unix 2.1.1? This is completely

[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] mingw32

Re: [R] a problem 'cor' function

2006-05-31 Thread Tao Shi
[1] FALSE sprintf(%1.22g, cor(pl, pl)) [1] 0.99989 sprintf(%1.22g, pl) [1] 6 5.0996 5.9004 etc Peter Ehlers Tao Shi wrote: Hi list, One of my co-workers found this problem with 'cor' in his code and I confirm it too (see

[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!

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

2004-04-24 Thread Tao Shi
are R consoles... ...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 for the next version of R windows Date: Sat, 24 Apr 2004 23:18:06 -0400 I don't see how

[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

[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