Re: [R] problem with simple if() statement

2006-02-06 Thread Colin Beale
Norman, you probably want: if (seq[i] == A) m - trans[1,] hth, Colin Norman Goodacre [EMAIL PROTECTED] 06/02/2006 06:22 the following code apprantely, for some grand old reason, induces a syntax error: if (seq[i] = A) m - trans[1,] where seq is a vector and trans is a matrix.

[R] Unfound objects in function

2006-04-18 Thread Colin Beale
A couple of my functions that were working last week seem to have been changed over the weekend and no longer work, but I can't understand why not: it seems that objects defined at the start of the function are not located further on in the function, when this worked fine before. An example

[R] reading long matrix

2005-12-22 Thread Colin Beale
. making this option rther time consuming, I expect - especially as the next dataset has 1300 species and a much larger grid... Any hints would be gratefully recieved. Colin Beale Macaulay Land Use Research Institute __ R-help@stat.math.ethz.ch mailing list

[R] removing loop in array recalculation

2006-01-17 Thread Colin Beale
Hi, I'm looking for a more elegant (and faster) solution to my current problem than the code at the end. I'm sure there is one, but can't think where to look - any pointers would be very welcome. The problem is one of resampling within an array. This array consists of 0s, 1s and NAs. For each

[R] Using functions within functions (environment problems)

2007-01-26 Thread Colin Beale
0.9-5 0.9-5 1.58 0.9-5 0.9-5 Dr. Colin Beale Spatial Ecologist The Macaulay Institute Craigiebuckler Aberdeen AB15 8QH UK Tel: 01224 498245 ext. 2427 Fax: 01224 311556 Email: [EMAIL PROTECTED] -- Please note that the views expressed in this e-mail are those of the sender

[R] R crash with modified lmer code

2007-01-26 Thread Colin Beale
data.frame(), terms = mt, call = match.call()), weights = weights, family = family) } environment(lmer1) - environment(lmer) Thanks, Colin Dr. Colin Beale Spatial Ecologist The Macaulay Institute Craigiebuckler Aberdeen AB15 8QH UK Tel: 01224 498245 ext. 2427 Fax: 01224 311556 Email

[R] Help with complex lme model fit

2007-05-25 Thread Colin Beale
latticesvSocketsvIO R2HTML svMisc svIDE 3.1-80 0.9975-110.15-5 0.9-5 0.9-5 1.58 0.9-5 0.9-5 Dr. Colin Beale Spatial Ecologist The Macaulay Institute Craigiebuckler Aberdeen AB15 8QH UK Tel: 01224 498245 ext. 2427 Fax: 01224 311556 Email