Re: [R] (no subject)

2004-09-28 Thread Kevin Wang
Hi, On Tue, 28 Sep 2004, YiYao_Jiang wrote: Hello everybody: I can't setup a library for some functions. Can anybody kindly give me an example about setup a library. From build a package to library. I am guessing you meant you want to compile a package from source? Have you looked at

[R] memory increase for large r simulation

2004-09-28 Thread shane stanton
Hi, I am running R from windows 95. I have a large simulation, which R does not get very far through before telling me: error cannot allocate vector of size 871875 Kb and warning message reached total allocation of 127 Mb I have been trying to increase the memory allocation to R from my

RE: [R] sapply behavior

2004-09-28 Thread Prof Brian Ripley
On Mon, 27 Sep 2004, Liaw, Andy wrote: The problem is that temp2 is a data frame, and the function you are sapply()ing to returns a row from a data frame. A data frame is really a list, with each variable corresponding to a component. If you extract a row of a data frame, you get another

Re: [R] memory increase for large r simulation

2004-09-28 Thread Prof Brian Ripley
Please read the appropriate FAQ (rw-FAQ), as the posting guide asks. ^ 2.7 There seems to be a limit on the memory it uses! lokks relevant, and is. (So was some more info given with that error message.) On Tue, 28 Sep 2004,

[R] (no subject)

2004-09-28 Thread YiYao_Jiang
*** On Tue, 28 Sep 2004, YiYao_Jiang wrote: I can't setup a library for some functions. Can anybody kindly give me an example about setup a library. From build a package to library. ***

[R] (no subject)

2004-09-28 Thread YiYao_Jiang
** Could you perhaps describe exactly what can't compile means, please? It's hard to know what you've tried without a little more information. ** 1). I type these command: f - function(x,y) x+y g - function(x,y) x-y

[R] array construction

2004-09-28 Thread Poizot Emmanuel
Hi all, I've got a file of the following format: X Y Z u v w 0 0 0 x x x 0 0 1 x x x 0 0 2 x x x .. .. .. .. .. .. 0 1 0 x x x 0 1 1 x x x 0 1 2 x x x .. .. .. .. .. .. 1 0 0 x x x 1 0 1 x x x 1 0 2 x x x etc x stand for

Re: [R] An index of all possible combinations of variables in a datafram e

2004-09-28 Thread Dimitris Rizopoulos
Hi Alan, you could also try the following function which has been submitted to s-news some time ago: powerSet - function(x){ if(length(x)==0) return(vector(mode(x), 0)) x - sort(unique(x)) K - NULL for(m in x) K - rbind(cbind(K, FALSE), cbind(K, TRUE)) out - apply(K, 1, function(x, s) s[x],

[R] random discrete from the first tuple

2004-09-28 Thread Xiyan Lon
Dear UseR I have a dataset, for instance x1(A, B, C), x2(M,F), x3(X1,X2,X3,X4) and x4(W,F,P). I want to make a small dataset with the random tuple. I know package e1071 can handle a random discrete, library(e1071) x1 - rdiscrete(6, c(2,2,2),c(A,B,C)) x2 - rdiscrete(6, c(3,3),c(M,F)) x3 -

[R] Plotting large texts into pdf file

2004-09-28 Thread Jacob, Michael J.
Is there an easy way to include larger amounts of text in a plot? I need to include a text report in a pdf file that is automtically created by a R script. I open a pdf device, then create several plots which are nicely output each on a page in the resulting pdf file, then I want to append

RE: [R] Plotting large texts into pdf file

2004-09-28 Thread Pfaff, Bernhard
Is there an easy way to include larger amounts of text in a plot? I need to include a text report in a pdf file that is automtically created by a R script. I open a pdf device, then create several plots which are nicely output each on a page in the resulting pdf file, then I want to

Re: [R] memory increase for large r simulation

2004-09-28 Thread Ernesto Jardim
On Tue, 2004-09-28 at 07:09, shane stanton wrote: Hi, I am running R from windows 95. I have a large simulation, which R does not get very far through before telling me: error cannot allocate vector of size 871875 Kb and warning message reached total allocation of 127 Mb I have

[R] replacing values in vector

2004-09-28 Thread pbrouilly
Hi everybody !! I have a vector named v1 with a lot of values from 0 to 10. Is there a solution to replace all 0 by 1 ?? I have tried with a 'FOR' loop... Thank you very much __ [EMAIL PROTECTED] mailing list

Re: [R] replacing values in vector

2004-09-28 Thread Dimitris Rizopoulos
just use v1[v1==0] - 1 Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/396887 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.be/biostat/

[R] Displaying environment differences

2004-09-28 Thread Barry Rowlingson
Sometimes after playing around in R for a while, I find myself thinking, What have I done?. Which boils down to What's the difference between the objects I currently have in my R session and those that were loaded from my .RData when I started R. So I bashed this out in five minutes, just to

Re: [R] Gridbase basic question

2004-09-28 Thread Sean Davis
Paul, Thanks for the extensive and clear explanation. The reason I started with grid is that I am hoping to use a combination of segments, rectangles, and text to describe relatively complex (genes) objects that relate to the x-axis in a plot. I do appreciate the insight from you and

[R] S latex listings

2004-09-28 Thread Josep Perarnau
Hello, I would like to insert S code to my latex document. I was looking for a listings package that supports S. In www.r-project.or in the software/other section there is an item with a link to latex package listings, but it seems that the link is broken. Does anybody know an alternative to get

[R] changing the number of tic marks on a plot

2004-09-28 Thread J
Hello everyone. Im quite new to R and have been trying all night to simply change the number of tic marks on a log graph...I would love a simple example if anyone could offer one. My plot statement looks like this: plot(cbind(c(minx,maxx),c(miny,maxy)),type=n,log=x, main = title, xlab= dose,

[R] add-on packages

2004-09-28 Thread Vikas Rawal
I want to add RMySQL and RODBC packages to my R installation on redhat linux box. The command install.packages gives following output. What could be wrong? install.packages(RMySQL) trying URL `http://cran.r-project.org/src/contrib/PACKAGES' Content type `text/plain;

[R] call R scripts from python

2004-09-28 Thread Fulvio Copex
Hello, I have just learnt some python, and would like to call R scripts from python, without using batch mode. I learnt how to do it from perl, in fact reading in the mail archive I found the following good example: *** #!/usr/local/bin/perl open (FILE,

[R] Re: changing the number of tic marks on a plot

2004-09-28 Thread J
Ah, I just figured it out. You change the number of tic marks using the axis() function. I tried variious par() statments but that did not seem to do anything. John __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Re: [Hmisc] proposal for change in latex.summary.formula.reverse

2004-09-28 Thread Patrick Drechsler
Hi Frank, Frank E. Harrell, Jr. wrote on 28 Sep 2004 10:38:27 MET: [snip] That's not the way to go. It's best to contact the package maintainer (e.g., me) with a request. Ok, personal mail sent. Cheers Patrick -- Millions long for immortality who do not know what to do with themselves on

Re: [R] An index of all possible combinations of variables in a datafram e

2004-09-28 Thread Adaikalavan Ramasamy
Alternatively you can use the combinations() function in gregmisc. library(gregmisc) n - 3 sapply(1:n, function(x) apply(combinations(n, x, LETTERS[1:n]), 1, paste, collapse=) ) Here is the same code written with a for loop n - 3 out - NULL for(i in 1:n){ tmp - combinations(n, i,

Re: [R] add-on packages

2004-09-28 Thread Witold Eryk Wolski
Hi! install.packages(RMySQL) ^ ^ note the parenthesis /E Vikas Rawal wrote: I want to add RMySQL and RODBC packages to my R installation on redhat linux box. The command install.packages gives following output. What could be wrong?

Re: [R] add-on packages

2004-09-28 Thread Sean Davis
I believe you need quotes around RMySQL. Try: install.packages(RMySQL) On Sep 28, 2004, at 6:34 AM, Vikas Rawal wrote: I want to add RMySQL and RODBC packages to my R installation on redhat linux box. The command install.packages gives following output. What could be wrong?

Re: [R] S latex listings

2004-09-28 Thread Patrick Drechsler
Josep Perarnau wrote on 28 Sep 2004 10:38:12 MET: [...search of listings package for latex...] URL:http://www.ctan.org/tex-archive/macros/latex/contrib/listings/ HTH Patrick -- I hate quotations. Tell me what you know. (Ralph Waldo Emerson) __

Re: [R] add-on packages

2004-09-28 Thread Uwe Ligges
Vikas Rawal wrote: I want to add RMySQL and RODBC packages to my R installation on redhat linux box. The command install.packages gives following output. What could be wrong? install.packages(RMySQL) trying URL `http://cran.r-project.org/src/contrib/PACKAGES' Content type

Re: [R] add-on packages

2004-09-28 Thread Vikas Rawal
Thanks. That was simple. Vikas Witold Eryk Wolski wrote: Hi! install.packages(RMySQL) ^ ^ note the parenthesis /E Vikas Rawal wrote: I want to add RMySQL and RODBC packages to my R installation on redhat linux box. The command install.packages gives following

RE: [R] S latex listings

2004-09-28 Thread Christophe Declercq
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Josep Perarnau Envoye : mardi 28 septembre 2004 10:38 A : [EMAIL PROTECTED] Objet : [R] S latex listings Hello, I would like to insert S code to my latex document. I was looking for a listings package that supports S. In

[R] read dbf files into R

2004-09-28 Thread Vikas Rawal
I run R on redhat linux. What would be the easiest way to read dbf files into R? Vikas __ [EMAIL PROTECTED] 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] slow loops in Monte Carlo Simulations

2004-09-28 Thread Nael Al Anaswah
Hi there, I am running Monte Carlo Simulations in R using ordinary while (condition) loops. Since the number of iterations is something like 100.000 and within each iteration a given subsample is extended sequentially it takes hours to run the simulation. Does anyone know if there is either

[R] read dbf files into R

2004-09-28 Thread Vito Ricci
Hi, read the manual: R Data Import/Export http://cran.r-project.org/doc/manuals/R-data.pdf Another way is to convert .dbf file in .txt and use read.table(), scan() an similar. Best Vito You wrote: I run R on redhat linux. What would be the easiest way to read dbf files into R? Vikas =

Re: [R] read dbf files into R

2004-09-28 Thread partha_bagchi
Have you checkout out R Data Import / Export? In particular, check out RODBC developed by Brian Ripley and Michael Lapsley. HTH, Partha Vikas Rawal [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 09/28/2004 07:11 AM To: [EMAIL PROTECTED] cc: Subject:[R]

Re: [Fwd: [R] Re: tseries Package for R]

2004-09-28 Thread Patrick Brandt
In R 1.9.1 for OSX 10.3.5 , install.packages(tseries) works fine, compiles correctly and seems to produce a working pkg just fine. Patrick T. Brandt Assistant Professor Department of Political Science University of North Texas http://www.psci.unt.edu/~brandt On Sep 28, 2004, at 3:16 AM, Adrian

RE: [R] An index of all possible combinations of variables in a d ata frame

2004-09-28 Thread Liaw, Andy
This might be a bit of an abuse of the functions, but it seems to work: dat - data.frame(A=1, B=2, C=3) f - ~ .^3 colnames(attr(terms(f, data=dat), factors)) [1] A B C A:B A:C B:C A:B:C Cheers, Andy From: Alan Simpson Hello list Does anybody know of any way to

Re: [R] read dbf files into R

2004-09-28 Thread Hisaji ONO
How about maptools package's internal function dbf.read? Try to use as follows. maptools:::dbf.read("test.dbf") maptools packages also has dbf.write, however it can only write out integer data. Best wishes. Vikas Rawal [EMAIL PROTECTED] Sent

[R] specifying exports for R CMD SHLIB

2004-09-28 Thread martin
Hi, How can I specify which functions should be exported when I build a shared library with 'R CMD SHLIB foo.c'?? I tried putting a file named foo.def in the same directory with the line 'EXPORTS' and the names of the functions to be exported, but the file is deleted in the build process. Any

Re: [R] An index of all possible combinations of variables in a d ata frame

2004-09-28 Thread Gabor Grothendieck
And here is a variation on your idea of using the factors attribute of terms with some minor reductions, this one returning a list of numeric vectors: fac - attributes(terms(~ a * b * c))$factors apply(fac == 1, 2, which) Liaw, Andy andy_liaw at merck.com writes: : : This might be a

Re: [R] read dbf files into R

2004-09-28 Thread Barry Rowlingson
Hisaji ONO wrote: maptools:::dbf.read(test.dbf) maptools packages also has dbf.write, however it can only write out integer data. I'll stick my Rmap oar in. My Rmap package (not in CRAN) can access dbf files using the dbf access library in shapelib. And instead of reading the dbf file

Re: [R] S latex listings

2004-09-28 Thread Frank E Harrell Jr
Josep Perarnau wrote: Hello, I would like to insert S code to my latex document. I was looking for a listings package that supports S. In www.r-project.or in the software/other section there is an item with a link to latex package listings, but it seems that the link is broken. Does anybody know

Re: [R] slow loops in Monte Carlo Simulations

2004-09-28 Thread Duncan Murdoch
On Tue, 28 Sep 2004 13:46:04 +0200, Nael Al Anaswah [EMAIL PROTECTED] wrote : Hi there, I am running Monte Carlo Simulations in R using ordinary while (condition) loops. Since the number of iterations is something like 100.000 and within each iteration a given subsample is extended

[R] package error message

2004-09-28 Thread Samuel Kemp
Hi, I am trying to make my own package in Windows XP with R 1.9.1. using Rcmd build/ Rcmd. The initial Rcmd build compiles ok with no error messages. However, when I run Rcmd check it runs ok up until * checking for file 'GammaTest/DESCRIPTION' ... OK * checking if this is a source package ...

Re: [R] specifying exports for R CMD SHLIB

2004-09-28 Thread Prof Brian Ripley
What OS? If this is Windows, you cannot (and why do you want to, as the DLL is just to be loaded into R?). On Tue, 28 Sep 2004 [EMAIL PROTECTED] wrote: How can I specify which functions should be exported when I build a shared library with 'R CMD SHLIB foo.c'?? I tried putting a file named

Re: [R] Re: tseries Package for R

2004-09-28 Thread Martin Henry H. Stevens
Load the R framework put together by Jan de Leeuw; Professor and Chair, UCLA Department of Statistics, available at http://gifi.stat.ucla.edu/ Hank On Sep 28, 2004, at 1:25 AM, Adrian Trapletti wrote: Wizon wrote: I am using Mac OSX. I am first starting to use R and have not installed any

Re: [R] An index of all possible combinations of variables in a data fram e

2004-09-28 Thread Chris Jackson
Yet another solution might be to abuse expand.grid: dat - expand.grid(rep(list(c(FALSE,TRUE)), 3)) apply(dat, 1, function(x)which(x)) This gives you a list of the numeric column indices, including an empty component at the beginning corresponding to none of the variables present. Alan Simpson

Re: [R] package error message

2004-09-28 Thread Uwe Ligges
Samuel Kemp wrote: Hi, I am trying to make my own package in Windows XP with R 1.9.1. using Rcmd build/ Rcmd. The initial Rcmd build compiles ok with no error messages. However, when I run Rcmd check it runs ok up until * checking for file 'GammaTest/DESCRIPTION' ... OK * checking if this is a

Re: [R] package error message

2004-09-28 Thread Samuel Kemp
Hi, Yes the blanks did seem to cause this error. Cheers, Sam. Uwe Ligges wrote: Samuel Kemp wrote: Hi, I am trying to make my own package in Windows XP with R 1.9.1. using Rcmd build/ Rcmd. The initial Rcmd build compiles ok with no error messages. However, when I run Rcmd check it runs ok up

Re: [R] specifying exports for R CMD SHLIB

2004-09-28 Thread Duncan Murdoch
On Tue, 28 Sep 2004 13:33:18 -, [EMAIL PROTECTED] wrote : Yes it is Windows and I'm using a cygwin version of gcc to compile. We recommend using MinGW; that's what R is compiled with. If you use Cygwin, you'll pull in the cygwin1.dll, and possibly other DLLs, and they may conflict with the

Re: [R] (no subject)

2004-09-28 Thread Gabor Grothendieck
YiYao_Jiang YiYao_Jiang at smics.com writes: : : ** : Could you perhaps describe exactly what can't compile means, please? : It's hard to know what you've tried without a little more information. : ** : : 1). I type these command: : :

Re: [R] passing formula arg to mgcv::gam

2004-09-28 Thread Thomas Lumley
I think that this should work in gam(), but in any case a fix is to put the subset variable into the data frame. The formula interface works best this way. In your example you could add idx=1:100 to the data frame and then use subset=idx %in% 1:10 -thomas On Mon, 27 Sep 2004, Vadim

Re: [Fwd: [R] Re: tseries Package for R]

2004-09-28 Thread Thomas Lumley
Adrian, There is no prebuilt binary for tseries, which fairly reliably indicates a problem in compiling it. When I try (and unfortunately I have only a pre2.0.0 system, not 1.9.1) I get an error at the final linking stage ld: dsumsl.o has local relocation entries in non-writable section

Re: [R] slow loops in Monte Carlo Simulations

2004-09-28 Thread Witold Eryk Wolski
Hi! Have you taken a look at the MCMCpack - package on cran: This package contains functions for posterior simulation for a number of statistical models. All simulation is done in compiled C++ written in the Scythe Statistical Library Version 1.0. All models return coda mcmc objects that can

Re: [R] slow loops in Monte Carlo Simulations

2004-09-28 Thread Gardar Johannesson
The key is to assign space in advance -- e.g., compare: N - 2 res - NULL system.time( for(i in 1:N) res - c(res, sample(10)) ) [1] 28.62 8.91 37.79 0.00 0.00 res - vector(list,N) system.time( for(i in 1:N) res[[i]] - sample(10) ) [1] 0.45 0.00 0.44 0.00 0.00 res - matrix(0.0, N,10)

Re: [R] Bootstrapping with weighted data sample

2004-09-28 Thread Cliff Lunneborg
Salvatore Barbaro writes, in part: Consider a sample, x, like this: # x- matrix(rbind(4,8,0,2, 25,30,5,32), ncol=2) # Weight Income 425 830 05 232 Here the Weight assigns the weight of each observation. P.S. I am using library(bootstrap) with bcanon() to obtain

Re: [R] Validating a Cox model on an external set

2004-09-28 Thread Frank E Harrell Jr
Min-Han Tan wrote: Good morning, Sorry to trouble the list. I have a problem I hope to seek your advice on. Essentially, I am trying to 'validate' a multivariate Cox proportional hazards model built in a training set, by testing it on an external test set. I have performed a survfit using the

Re: [R] Validating a Cox model on an external set

2004-09-28 Thread Thomas Lumley
On Tue, 28 Sep 2004, Min-Han Tan wrote: Essentially, I am trying to 'validate' a multivariate Cox proportional hazards model built in a training set, by testing it on an external test set. I have performed a survfit using the Cox model to predict survival for the test set, and obtained individual

RE: [R] Validating a Cox model on an external set

2004-09-28 Thread Berton Gunter
But note that there may be deeper, non-statistical, issues of what you mean by validation here: how good must the predictions be on the validation data? How similar or dissimilar should the validation data be to the training data? To what end/population is the fitted model to be applied? For

Re: [R] Validating a Cox model on an external set

2004-09-28 Thread Min-Han Tan
Thank you all for your very insightful comments! And thank you for the directions to the packages! Re: non-statistical issues, yes, I was looking through Altman and Royston's Stat Med 2000 article What do we mean by validating a prognostic model? last night and it was very interesting. I'm

[R] How compare pre-treatment vs. post-treatment assessments

2004-09-28 Thread Landini Massimiliano
Please consider Trt_No PlotSub metpru_0dat metpru_2dat metpru_7dat metpru_14dat 1 1 1 9 14 12 5 1 1 2 6 7 6 5 1 1 3 6 15 13 5 1 1 4 10 10 9

[R] Bug? using { as a function in lapply

2004-09-28 Thread Gabor Grothendieck
This seems like a bug to me. Can someone verify this? First we define a function f that returns its second argument and lapply it to 1:2 using 9 as the second argument and all seems well. Note that { as a function does the same thing as f, as illustrated with f(1,9) and {(1,9); however,

Re: [R] Looking for .Call functions

2004-09-28 Thread Nathaniel B. Derby
Hello, Thanks for the help. Unfortunately, my version of R (1.9.1) doesn't have that directory (i.e., within $RSRC\src\library, there is just a subdirectory entitled windlgs), and has neither ts.h nor pacf.c in any of its directories. Could it be that this function is embedded inside a .dll

RE: [R] Bug? using { as a function in lapply

2004-09-28 Thread Liaw, Andy
But (it seems like) { as a primitive function can take arbitrary number of argument, and return the last argument. So Gabor's usage seems right, yet somehow within lapply() { doesn't like the way it's being called. Also, be very careful: { - function(x, y) y f - function(a, b) { exp(a+b);

[R] S4 method selection based on second argument

2004-09-28 Thread Paul Roebuck
I'm translating some Matlab code and need some help figuring out how to change this call into an S4 generic method. In matlab, there's a function called 'repmat' with three calling sequences (all I have to deal with anyway): 1) B = repmat(A, m, n) 2) B = repmat(A, [m n]) 3) B =

Re: [R] Gridbase basic question

2004-09-28 Thread Paul Murrell
Hi Sean Davis wrote: Paul, Thanks for the extensive and clear explanation. The reason I started with grid is that I am hoping to use a combination of segments, rectangles, and text to describe relatively complex (genes) objects that relate to the x-axis in a plot. I do appreciate the

RE: [R] Bug? using { as a function in lapply

2004-09-28 Thread Liaw, Andy
From: Gabor Grothendieck Thanks for pointing out that this is already fixed in the upcoming version of R. It's not. I was using R-2.0.0beta from 2004-09-24, and it's still that way. Andy Witold Eryk Wolski wolski at molgen.mpg.de writes: : : Hi, : : { - function(x,y)y :

RE: [R] Looking for .Call functions

2004-09-28 Thread Liaw, Andy
You need to download the source for R. C source is not included with binary distributions. Andy From: Nathaniel B. Derby Hello, Thanks for the help. Unfortunately, my version of R (1.9.1) doesn't have that directory (i.e., within $RSRC\src\library, there is just a subdirectory

[R] not understanding geoR nugget output

2004-09-28 Thread Melanie A. Link-Perez
I am having difficulty understanding the output from a likfit call, specifically the output for the nugget. When the partial sill is non-zero, the estimated nugget that is returned is zero. When the partial sill is zero, I get a non-zero nugget. The following output may be helpful: Estimation

Re: [R] Bug? using { as a function in lapply

2004-09-28 Thread Gabor Grothendieck
That is odd. I guess I was premature in jumping to that conclusion. As another data point, it does work correctly for me in 1.9.1 patched if I switch from lapply to mapply: R lapply(1:2, {, 9) Error in lapply(1:2, {, 9) : ... used in an incorrect context R mapply({, 1:2, 9, SIMPLIFY = FALSE)

Re: [R] Bug? using { as a function in lapply

2004-09-28 Thread Peter Dalgaard
Gabor Grothendieck [EMAIL PROTECTED] writes: Thanks for pointing out that this is already fixed in the upcoming version of R. It isn't. Look closer. I'm not sure this qualifies as a bug though. It boils down to f - function(...){...} f() Error in f() : ... used in an incorrect context

Re: [R] S4 method selection based on second argument

2004-09-28 Thread Witold Eryk Wolski
Hi, If it's the only reason why you think you have to use S4 then take a look at ?missing. If you are interested in S4: The first version gives an overview of setMethods. Then I give a simpler example. And finally a pure ?missing solution. A) Declare function repmat as generic

Re: [R] Bug? using { as a function in lapply

2004-09-28 Thread Gabor Grothendieck
Peter Dalgaard p.dalgaard at biostat.ku.dk writes: : : Gabor Grothendieck ggrothendieck at myway.com writes: : : Thanks for pointing out that this is already fixed in the upcoming : version of R. : : It isn't. Look closer. : : I'm not sure this qualifies as a bug though. It boils down to :

Re: [R] S4 method selection based on second argument

2004-09-28 Thread Gabor Grothendieck
Paul Roebuck roebuck at odin.mdacc.tmc.edu writes: : : I'm translating some Matlab code and need some help figuring : out how to change this call into an S4 generic method. : : In matlab, there's a function called 'repmat' with three : calling sequences (all I have to deal with anyway): :

Re: [R] Bug? using { as a function in lapply

2004-09-28 Thread Gabor Grothendieck
Peter Dalgaard p.dalgaard at biostat.ku.dk writes: : : Gabor Grothendieck ggrothendieck at myway.com writes: : : Peter Dalgaard p.dalgaard at biostat.ku.dk writes: : : : : : Gabor Grothendieck ggrothendieck at myway.com writes: : : : : Thanks for pointing out that this is already

Re: [R] not understanding geoR nugget output

2004-09-28 Thread Paulo Justiniano Ribeiro Jr
Melaine When estimated phi=0 or sigmasq=0 the odel is a pure nugget effect and you cannot distinguish between sigmasq and tausq Therefore it is a convention in geoR to assign the estimated varioance to tausq. Regarding R^2: forgaussian models you can compute this values using the maximised

[R] Re: read dbf files into R

2004-09-28 Thread Vikas Rawal
Is there a linux-based/free command line tool for converting dbf files into txt? Conceptually, it is not a great way of doing things. We have a dbf file with a well defined structure. We convert it into a text file, which has a loose structure, undefined variables types etc. And then we read

Re: [R] read dbf files into R

2004-09-28 Thread Vikas Rawal
It looks like there is no free dbf driver for unixodbc. Vikas [EMAIL PROTECTED] wrote: Have you checkout out R Data Import / Export? In particular, check out RODBC developed by Brian Ripley and Michael Lapsley. HTH, Partha Vikas Rawal [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 09/28/2004

Re: [R] Re: read dbf files into R

2004-09-28 Thread Kevin Bartz
Vikas Rawal wrote: Is there a linux-based/free command line tool for converting dbf files into txt? Conceptually, it is not a great way of doing things. We have a dbf file with a well defined structure. We convert it into a text file, which has a loose structure, undefined variables types etc.