[R] write a table to file with unequal length of lists

2006-09-01 Thread Zhu Wang
, x - c(1,2) a - NULL a[1] - list(c(4,5)) a[2] - list(c(8,9,10) Any suggestions to write such a table to file would be appreciated. Thanks, Zhu Wang __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] write a table to file with unequal length of lists

2006-09-01 Thread Zhu Wang
Yes, the code does the job. Thanks, Zhu Wang Rolf Turner wrote: What about x - 1:2 a - list(c(4,5),c(8,9,10)) # Which is the way you *should* # have constructed a! ddd - data.frame(x=x,a=I(unlist(lapply(a,paste,collapse

Re: [R] write a table to file with unequal length of lists

2006-09-01 Thread Zhu Wang
Apparently I missed cat. Thanks. Zhu Wang Gabor Grothendieck wrote: A simple for loop would do it: x - 1:2; a - list(4:5, 8:10) # test data cat(x a\n, file = ) # only if you want a header for(i in seq(along = x)) cat(x[i], a[[i]], \n, file = ) On 9/1/06, Zhu Wang [EMAIL PROTECTED] wrote

[R] Problem with Fortran 95 code in R

2006-06-15 Thread Zhu Wang
Dear helpers: I am trying to call some Fortran 95 code with R-2.3.0 but had problem as below. Any pointers would be appreciated. Thanks, Zhu Wang On Linux, R CMD SHLIB rfh.f R dyn.load(rfh.so) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library

[R] dependencies ERROR during R CMD check

2006-06-03 Thread Zhu Wang
Dear all, I was trying to build my own R package cts on LINUX but got the following checking package dependencies error and a warning message. What were wrong? Thanks, Zhu # R CMD check cts * checking for working latex ... OK * using log directory '/home/zwang/R/pkg/cts.Rcheck' * using

[R] GEE in Fortran

2005-11-16 Thread Zhu Wang
Dear all, Does anybody happen to have written some GEE source code in Fortran to solve a Generalized Estimation Equation Model? Or kindly point out me a good starting point. Thanks. Zhu Wang SCHARP __ R-help@stat.math.ethz.ch mailing list https

[R] Re: help in R calling C function (Lei Liu)

2004-06-27 Thread Zhu Wang
',as.double(a)) But the R system crashed. I know I can only define the function type in C as void to be called by R. But what if I want to call another C function in the main C function? Thank you for your help! Sincerely, Lei Liu -- Zhu Wang Statistical Science Department Southern

Re: [R] Building package on Windows: No rule to make target '-llapack'

2004-06-10 Thread Zhu Wang
On Thu, 2004-06-10 at 06:40, Prof Brian Ripley wrote: On Wed, 9 Jun 2004, Zhu Wang wrote: I have a problem to build a package on Windows XP while there is no problem on Linux. The Makefile is something like: There would be a problem on Linux, if that Makefile were used. I suspect

[R] Building package on Windows: No rule to make target '-llapack'

2004-06-09 Thread Zhu Wang
in \src\gnuwin32, but I did not find what I needed. Thanks for any advice. Zhu Wang Statistical Science Department Southern Methodist University __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] Question about building library and BLAS

2004-05-31 Thread Zhu Wang
question is how do I set up my Makefile, or maybe other files, such that I have the same result as I did to compile and run these Fortran files directly. Thanks in advance. -- Zhu Wang Statistical Science Department Southern Methodist University Dallas, TX 75275-0332 Phone:(214)768-2453 Fax:(214

Re: [R] Question about building library and BLAS

2004-05-31 Thread Zhu Wang
to improve later. -- Zhu Wang __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Problem: creating shared objects using lapack and blas

2004-05-28 Thread Zhu Wang
to link Lapack and Blas was not correct, even though it worked fine when I used for running Fortran code before. Thanks for any advice. Zhu Wang Statistical Science Department Southern Methodist University Dallas, TX 75275-0332 __ [EMAIL PROTECTED

[R] Re: Problem: creating shared objects using lapack and blas

2004-05-28 Thread Zhu Wang
To solve my own problem, it seems better to follow instructions in Writing R Extensions to build a library. I am making progress. Thanks, Zhu Wang Statistical Science Department Southern Methodist University Dallas, TX 75275-0332 On Fri, 2004-05-28 at 13:11, Zhu Wang wrote: I am having

Re: [R] missing values for mda package

2004-04-09 Thread zhu wang
Thanks. I was able to use na.omit to remove NAs. But it seems to me this kills one of the advantages of the original algorithm for handling missing values. On Tue, 2004-04-06 at 11:54, Uwe Ligges wrote: zhu wang wrote: Dear helpers, I am trying to use the mda package downloaded from

[R] missing values for mda package

2004-04-06 Thread zhu wang
it. Please forgive me if I ignore something obvious. Thanks, Zhu Wang Statistical Science Department Southern Methodist University Dallas, TX 75275-0332 Phone: (214)768-2453 Fax: (214)768-4035 Email: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list

[R] butterworth filter code?

2004-02-21 Thread zhu wang
Hello, Does anybody have butterworth filter code in R? Thanks, -- Zhu Wang Statistical Science Department Southern Methodist University Dallas, TX 75275-0332 Phone: (214)768-2453 Fax: (214)768-4035 Email: [EMAIL PROTECTED] __ [EMAIL PROTECTED

[R] Re: generic algorithm

2003-10-23 Thread zhu wang
Sorry, it is my bad. I mean genetic algorithm. It seems genoud {rgenoud} is the one I am looking for. On Thu, 2003-10-23 at 09:51, zhu wang wrote: Dear all, Is there any generic algorithm code for optimization implemented in R? I searched without success. Thanks, -- Zhu Wang

[R] carma (package growth)

2003-09-03 Thread zhu wang
at the help file without success. Thanks for any ideas. -- Zhu Wang Statistical Science Department Southern Methodist University Phone: (214)768-2453 Fax: (214)768-4035 Email: [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https

[R] Rwave cgt plot time axis problem

2003-08-04 Thread zhu wang
in the book. But the figures of the book display the real sampling time using the same codes. It seems there is no argument for the time scale for 'cgt'. Is this a bug or my misunderstanding? Hope somebody can help me. Thanks, Zhu Wang Statistical Science Department Southern Methodist University

Re: [R] What's wrong with ar for my data?

2003-06-19 Thread zhu wang
are you fitting an AR model to a series with apparently no correlation? The data are from simulation. Thanks for pointing out to me no correlation. On 19 Jun 2003, zhu wang wrote: Dear helpers, When I use ar to fit the data with length 180, I have the following error: ar(x,method

[R] What's wrong with ar for my data?

2003-06-18 Thread zhu wang
Obviously I missed some points for using ar. This is R 1.7.0 under Redhat Linux 9.0 Thanks in advance. Zhu Wang Statistical Science Department Southern Methodist University -- zhu wang [EMAIL PROTECTED] __ [EMAIL PROTECTED] mailing list https

Re: [R] Questions for package ts prediction

2003-06-09 Thread zhu wang
. On 9 Jun 2003, zhu wang wrote: I am trying to write a function to return prediction values using package ts. I have written three different versions since I am not sure what's wrong with my func2. func and func1 return the same results.But func1 and func2 don't. In particular, the only

[R] Questions for package ts prediction

2003-06-08 Thread zhu wang
the package help: data(sunspot) (sunspot.ar - ar(sunspot.year)) # why not just sunspot.ar - ar(sunspot.year) ? predict(sunspot.ar, n.ahead=25) Thanks in advance. Zhu Wang Statistical Science Department Southern Methodist University (214)768-2453 -- zhu wang [EMAIL PROTECTED] # time series

FW: [R] unable to open connection

2003-02-03 Thread zhu wang
Thanks to Brian D. Ripley and Uwe Ligges. It works now. Zhu Wang Statistical Science Department Southern Methodist University 3225 Daniel Avenue, Heroy 123 Dallas, TX 75275 Tel: (214)768-2453 Fax: (214)768-4035 -Original Message- From: Uwe Ligges [mailto:[EMAIL

[R] unable to open connection

2003-02-01 Thread zhu wang
success. It works for other libraries though. Any suggestions? Thanks. Zhu Wang Statistical Science Department Southern Methodist University 3225 Daniel Avenue, Heroy 123 Dallas, TX 75275 Tel: (214)768-2453 Fax: (214)768-4035 [[alternate HTML version deleted