RE: [R] error preparing a package for lazy loading with R CMD

2005-01-29 Thread Patrick Giraudoux H
I have just tried adding a newline at the end of each file. Unsuccessfully. Lazy loading is still not accepted and the library can be compiled only with the "LazyLoad: no" option in the description file. Thanks anyway, Patrick A 09:05 25/01/2005 +0100, Henrik Bengtsson a écrit : A wild guess: Do

Re: [R] Error: cannot allocate vector of size... but with a twist

2005-01-29 Thread James Muller
correction: I actually did run things before (as the gc output indicates), but deleted them from memory before. Everything else applied anyway. James __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t

Re: [R] Error: cannot allocate vector of size... but with a twist

2005-01-29 Thread James Muller
Apparently not. I had to re-run things (after some modifications) to double-check the 32-bit theory (had to check whether I'd used 3.5GB or 3GB of swap at crash time). R crashed with the same error (Error: cannot allocate vector of size 145 Kb), and here is the memory usage (of my whole system,

[R] Testing Poisson GLMs with independent data: what's the Right Thing To Do?

2005-01-29 Thread Steve Cumming
Folks, my question is not R-specific, but I've struck out twice on sci.stat.consult, so I'm turning to the R community. Even if it's a silly question, I expect that someone present will probably tell me so... I have been using multiple Poisson GLMs and similar count-re­gression models to analyse f

[R] New user...tips for spdep?

2005-01-29 Thread Mike Leahy
Hello List, I'm a very new user to the R system. I'm only beginning to learn the basics, but so far I've been able to do little more than try a few examples, and of course begin reading the documentation. My primary motivation for exploring R is the availability of tools like the 'spdep' p

[R] read.matrix.csr bug (e1071)?

2005-01-29 Thread David Meyer
This is a bug, thanks for pointing this out. Fixed for the next release of e1071. David - Hello, I would like to read and write sparse matrices using the functions write.matrix.csr() and read.matrix.csr() of the package e1071. Writing is OK but reading back the matrix fails:

[R] Bootstrapped eigenvector

2005-01-29 Thread Jérôme Lemaître
Hello alls, I found in the literature a technique that has been evaluated as one of the more robust to assess statistically the significance of the loadings in a PCA: bootstrapping the eigenvector (Jackson, Ecology 1993, 74: 2204-2214; Peres-Neto and al. 2003. Ecology 84:2347-2363). However, I'm n

Re: [R] avoiding loops

2005-01-29 Thread Gabor Grothendieck
From: Frank Samuelson <[EMAIL PROTECTED]> > Along the lines of this thread, > is there a general apply type function that > allows me to take one vector at a time from a matrix (or > row from a data frame) and another vector from another matrix > and apply them on a general function? Sort of a

Re: [R] Name conflicts when passing arguments for one function to another

2005-01-29 Thread Prof Brian Ripley
On Sat, 29 Jan 2005, Graham Jones wrote: I am fairly new to R. I find it surprising that f <- function(x,a) {x-a} uniroot(f, c(0,1), a=.5) works, but integrate(f, 0, 1, a=.5) gives an error: Error in integrate(f, 0, 1, a = 0.5) : argument 4 matches multiple formal arguments What is the best way of

Re: [R] Name conflicts when passing arguments for one function to another

2005-01-29 Thread Peter Dalgaard
Graham Jones <[EMAIL PROTECTED]> writes: > I am fairly new to R. I find it surprising that > > f <- function(x,a) {x-a} > uniroot(f, c(0,1), a=.5) > > works, but > > integrate(f, 0, 1, a=.5) > > gives an error: Error in integrate(f, 0, 1, a = 0.5) : argument 4 > matches multiple formal argumen

[R] Name conflicts when passing arguments for one function to another

2005-01-29 Thread Graham Jones
I am fairly new to R. I find it surprising that f <- function(x,a) {x-a} uniroot(f, c(0,1), a=.5) works, but integrate(f, 0, 1, a=.5) gives an error: Error in integrate(f, 0, 1, a = 0.5) : argument 4 matches multiple formal arguments What is the best way of avoiding such surprises? Is there a

Re: [R] avoiding loops

2005-01-29 Thread Frank Samuelson
Along the lines of this thread, is there a general apply type function that allows me to take one vector at a time from a matrix (or row from a data frame) and another vector from another matrix and apply them on a general function? Sort of a multidimensional mapply, or an 'inner' routine where yo

Re: [R] A "rude" question

2005-01-29 Thread msck9
Thanks for all the good points. I raised the question not because I doubt the R system, but I think it is a common point for all the open code software. Personally I really appreciate the open source software, and nowadays, there are more and more open source, especially in the academic area. Min

Re: [R] Re: [R-sig-finance] R for CGI

2005-01-29 Thread Dirk Eddelbuettel
On 29 January 2005 at 10:35, Andrew Piskorski wrote: | On Fri, Jan 28, 2005 at 12:30:53PM -0800, ebashi wrote: | | > Perl is the common language to write CGI scripts which handle | > Forms. My question is that can R be as fast as perl to do the same | > job(with using CGIwithR package). Is it an

[R] Re: [R-sig-finance] R for CGI

2005-01-29 Thread Andrew Piskorski
On Fri, Jan 28, 2005 at 12:30:53PM -0800, ebashi wrote: > Perl is the common language to write CGI scripts which handle > Forms. My question is that can R be as fast as perl to do the same > job(with using CGIwithR package). Is it an optimal solution to > connect R directly to a commercial HTML we

[R] Kouros Owzar is ooo.

2005-01-29 Thread Kouros Owzar
I will be out of the office starting 01/28/2005 and will not return until 02/02/2005. __ 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

Re: [R] Database Connection Problem with RMySQL package

2005-01-29 Thread John Bollinger
On Sat, 29 Jan 2005 14:53:55 +0800, Willie Y. CHEN <[EMAIL PROTECTED]> wrote: > Folks, > > I failed to create a connection to the database under MySQL DBMS in > the R system via RMySQL's method dbConnection(...). > > My setup is as follows: > > Microsoft Windows XP 5.1.2600 > MySQL 4.1.9 > R 2.0

RE: [R] unique rows

2005-01-29 Thread Ted Harding
On 29-Jan-05 dax42 wrote: > Dear list, > > I would like to extract from a matrix all those rows, that are unique. > By unique, I don't mean the unique that is accomplished by the function > unique(), though... > > Consider the following example: > > h > [,1] [,2] > [1,]44 > [2,]

Re: [R] unique rows

2005-01-29 Thread Peter Dalgaard
"John Fox" <[EMAIL PROTECTED]> writes: > Dear Dax, > > I'll bet that someone comes up with a better approach, but the following > does appear to work: > > u <- unique(t(sapply(as.data.frame(t(h)), sort))) Or maybe just unique(t(apply(h,1,sort))) -- O__ Peter Dalgaard Bl

Re: [R] unique rows

2005-01-29 Thread Patrick Burns
There may be more efficient ways, but unique(t(apply(h, 1, sort))) does what I think you want. Patrick Burns Burns Statistics [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") dax42 wrote: Dear list, I would like to extract fro

RE: [R] unique rows

2005-01-29 Thread John Fox
Dear Dax, I'll bet that someone comes up with a better approach, but the following does appear to work: u <- unique(t(sapply(as.data.frame(t(h)), sort))) I hope this helps, John John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4

[R] unique rows

2005-01-29 Thread dax42
Dear list, I would like to extract from a matrix all those rows, that are unique. By unique, I don't mean the unique that is accomplished by the function unique(), though... Consider the following example: > h [,1] [,2] [1,]44 [2,]14 [3,]41 Now unique(h) returns exact

Re: [R] glm and percentage data with many zero values

2005-01-29 Thread Christian Kamenik
Dear R users, I would like to summarize the answers I got to the following question: I am interested in correctly testing effects of continuous environmental variables and ordered factors on bacterial abundance. Bacterial abundance is derived from counts and expressed as percentage. My proble

Re: [R] Database Connection Problem with RMySQL package

2005-01-29 Thread BEER Michael
> My setup is as follows: > > Microsoft Windows XP 5.1.2600 > MySQL 4.1.9 > R 2.0.1 > DBI 0.1-8 > RMySQL 0.5-5 > > [...] > > > dbname="campus") > Error in mysqlNewConnection(drv, ...) : RS-DBI driver: (could > not connect [EMAIL PROTECTED] on dbname "campus") > > What am I doing wrong with?...

Re: [R] extracting from a data.frame

2005-01-29 Thread Douglas Bates
Chuck Cleland wrote: newdat <- subset(a, a$V3 == "O") You can even use newdat <- subset(a, V3 == "O") because of the way that subset evaluates the "subset" expression. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

[R] lagged scatterplot within rows

2005-01-29 Thread Jindan Zhou
Suppose the data is organized in a 10 by 10 matrix, each row is named R1 through R10, and each column is named C1 through C10, I need to do a lagged scatterplot, for lag h = 1, 2, ..., the pairs will be chosen only within all rows, i.e. the lags do not span across rows. What is the nicest solution

Re: [R] error in gmake CrossCompileBuild

2005-01-29 Thread Prof Brian Ripley
On Fri, 29 Jan 2005, Peter Dalgaard wrote: Steve Dutky <[EMAIL PROTECTED]> writes: tools//include/float.h but does not appear to be defined elsewhere. Any advice greatly appreciated. Not this bit I fear, but: Please take it to the r-devel list; it is way beyond the level of r-help. And when you do,