[R] Bug in 2.4.0 Windows menu setup

2006-10-04 Thread Duncan Murdoch
on in the translations, and he's away until Oct 9. Duncan Murdoch On 10/3/2006 9:00 PM, ronggui wrote: This morning I downloaded R-2.4.0 and install in under Windows. I customized the installation and choose Message translations,but I could not launch Rgui.exe successfully( Rterm.exe worked fine). If I

Re: [R] do.call with Vectorial Argument

2006-10-03 Thread Duncan Murdoch
that better_sigma will look up the variables t, q, lam1, and lam2 in whatever environment it was defined in, so if you have a function that modifies local copies of those variables and then calls better_sigma, you should define better_sigma within that function. Duncan Murdoch So I am making

Re: [R] RGL 'front' upwards default in rendering image

2006-10-03 Thread Duncan Murdoch
if the direction isn't the one you want. Duncan Murdoch Thank you Joe Duncan Murdoch wrote: Joe Byers wrote: The documentation for surface3d and rgl.surface in the package RGL states 'surface3d' always draws the surface with the `front' upwards (i.e. towards higher 'z' values). This can

Re: [R] new to R: don't understand errors

2006-10-03 Thread Duncan Murdoch
, so you'll need to talk to the maintainer of that package (Fridolin Wild, whose email address you can get by library(help=lsa)) to find out the real cause. Duncan Murdoch data(stopwords_en) CCauto = textmatrix( CultureMineTXT , minWordLength=3, minDocFreq=50, stopwords

Re: [R] RGL 'front' upwards default in rendering image

2006-10-03 Thread Duncan Murdoch
On 10/3/2006 2:27 PM, Joe Byers wrote: Thanx for the help. Other comments are posted inline below. Joe Duncan Murdoch wrote: On 10/3/2006 11:31 AM, Joe Byers wrote: thanks for the reply. I wish I could create a self contained example of the problem, but I can't. My task

Re: [R] how ot replace the diagonal of a matrix

2006-10-03 Thread Duncan Murdoch
On 10/3/2006 4:59 PM, roger bos wrote: Dear useRs, Trying to replace the diagonal of a matrix is not working for me. I want a matrix with .6 on the diag and .4 elsewhere. The following code looks like it should work--when I lookk at mps and idx they look how I want them too--but it only

Re: [R] Possible bug?

2006-10-03 Thread Duncan Murdoch
. Message translations is Simplified Chinese. Did you test any of the betas or release candidates? I run an English language version of Windows, and I don't even get offered the chance to install in Simplified Chinese, so I certainly didn't test this. Duncan Murdoch

Re: [R] RGL 'front' upwards default in rendering image

2006-10-02 Thread Duncan Murdoch
sort of thing do you want to do? Duncan Murdoch __ 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 and provide commented, minimal, self

Re: [R] if (NULL) is error?

2006-10-01 Thread Duncan Murdoch
length 1 is okay; in fact, that gives a warning). Duncan Murdoch __ 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 and provide commented

Re: [R] array vs matrix vs dataframe?

2006-10-01 Thread Duncan Murdoch
suspect it's the row names. Duncan Murdoch a-c(rep(1:100,1)) b-c(rep(1:100,1)) c1-cbind(a,b) cdf-as.data.frame(cbind(a,b)) cm-as.matrix(cbind(a,b)) object.size(a)/100 object.size(b)/100 object.size(c1)/100 object.size(cdf)/100 object.size(cm)/100

Re: [R] array vs matrix vs dataframe?

2006-10-01 Thread Duncan Murdoch
] 8.000448 object.size(cm)/100 [1] 8.000296 (These are in a recent release candidate of 2.4.0.) Duncan Murdoch __ 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

Re: [R] strange warning message

2006-09-30 Thread Duncan Murdoch
that update ? Is there anyway to get rid of this message ? Please show some code that leads to the message. You shouldn't get it in new objects, but there could be a bug in R or in a package you're using. Duncan Murdoch Thanks a lot . best - Original Message - From: Duncan

Re: [R] Build error on Windows

2006-09-30 Thread Duncan Murdoch
will fail, and that may lead to other errors later. Duncan Murdoch __ 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 and provide commented

Re: [R] if then else

2006-09-30 Thread Duncan Murdoch
it's a bad idea to use one, because it might give a mistaken impression about the meaning of something like a = 1 + 2; It's better to avoid semi-colons whenever possible, to make sure the C parser in your brain throws an exception and lets the R parser take over. Duncan Murdoch

Re: [R] Textmate project drawer: is there a Windows alternative?

2006-09-30 Thread Duncan Murdoch
idea to describe what a project drawer is. The population of people who know Textmate and Windows text editors is probably pretty small. Duncan Murdoch Thanks, Graham [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch

Re: [R] strange warning message

2006-09-30 Thread Duncan Murdoch
consequences. Duncan Murdoch John C Frain output of R session started with Sciviews R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications

Re: [R] Evaluation of defaults in functions

2006-09-29 Thread Duncan Murdoch
to some strange errors, so delay was deprecated and is now defunct. (I don't really know what the result of the assignment above would have been.) Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Evaluation of defaults in functions

2006-09-29 Thread Duncan Murdoch
mean was not found Duncan Murdoch __ 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 and provide commented, minimal, self-contained

Re: [R] Build error on Windows

2006-09-29 Thread Duncan Murdoch
to build few. But still RGui.exe shows warning saying there is no package called 'datasets', 'utils' etc. Can someone please point me how to resolve this issue? Probably the same cause. base is messed up, and that's going to cause all sorts of trouble. Duncan Murdoch Thanks in advance

Re: [R] Perspective axes

2006-09-28 Thread Duncan Murdoch
. How can I get the x and y values to appear on the plot? You could try persp3d in the rgl package; it has more flexibility about labels (but not as much as most R graphics: you can't change fonts, for instance). Duncan Murdoch __ R-help

Re: [R] New project: littler for GNU R

2006-09-27 Thread Duncan Murdoch
. Duncan Murdoch On 9/26/06, Dirk Eddelbuettel [EMAIL PROTECTED] wrote: On 26 September 2006 at 22:17, Gabor Grothendieck wrote: | The real problem is that one wants to pipe the data in, not the | R source. The idea is that one successively transforms the | data in successive elements

Re: [R] New project: littler for GNU R

2006-09-27 Thread Duncan Murdoch
not generally available in Windows, so we were stuck with C. Duncan Murdoch 'r' is cute, but going down the road of tools with the same name except for caps leads to confusion (for me). For example, R CMD build/INSTALL still catches me up after a number of years. That's a different

Re: [R] New project: littler for GNU R

2006-09-27 Thread Duncan Murdoch
On 9/27/2006 7:06 AM, Duncan Murdoch wrote: Gabor Grothendieck wrote: I think this is quoted out of context. I was referring to Duncan's post which shows an example of piping R code. No, that was Jeffrey's post that showed the pipe. All that was in my post was a question about why

Re: [R] New project: littler for GNU R

2006-09-26 Thread Duncan Murdoch
the script that invokes R? That would avoid the r/R clash on MacOSX and Windows. In Windows R is R.exe, not a script, so some adjustment would be needed there, but that shouldn't be difficult. Duncan Murdoch Equivalently, commands that are to be evaluated can be given on the command

Re: [R] Can't mix high level and low level plot functions.

2006-09-25 Thread Duncan Murdoch
), to=max(x), len=200) lines(x0, dnorm(x0, mean=mean(x), sd=sd(x)), type=l, lwd=2) Duncan Murdoch I tried this one using a high level plot function as well: curve(dnorm, n=1, add=TRUE, xlim=range(x)) The advantage is, now I can set an ideal population of 1 to get the ideal curve

Re: [R] R gui console problem

2006-09-24 Thread Duncan Murdoch
posted. As every message in this mailing list says, PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing

Re: [R] strange warning message

2006-09-23 Thread Duncan Murdoch
was used); if that's true for your code, then you'll need to fix it. emptyenv() now gives you an empty environment if that's what you really want. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Creating Movies with R

2006-09-22 Thread Duncan Murdoch
to put the frames together. It supports GIF; I think it also supports MPEG and maybe some other animated formats. Duncan Murdoch Here is the script: rm(list=ls()) library(lattice) # I start defining the analytical functions needed to get the density as a function of time

Re: [R] setMethod

2006-09-22 Thread Duncan Murdoch
for myClass objects, so if x was a myClass object, it would be called when something like x$name was used in an expression. It would call an external function named foo_name, passing x as an argument. Duncan Murdoch something similar to: plot.lm() Thanks in advance ! Greg

Re: [R] install error uder Cygwin

2006-09-22 Thread Duncan Murdoch
arises? Thanks a lot. We don't support builds under Cygwin. Duncan Murdoch __ 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 and provide

Re: [R] Exponentiate a matrix

2006-09-21 Thread Duncan Murdoch
- round(pow) if (pow 0) { mat - solve(mat) pow - abs(pow) } result - diag(nrow(mat)) while (pow 0) { result - result %*% mat pow - pow - 1 } result } Now P %^% 3 will give you the matrix cube. Duncan Murdoch __ R

Re: [R] Adding .R to source file keeps R from reading it?

2006-09-21 Thread Duncan Murdoch
to that, or just write your own functions and put them in your own file. Duncan Murdoch __ 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 and provide

[R] Comment delay time (was: acos(0.5) == pi/3 FALSE)

2006-09-20 Thread Duncan Murdoch
not to see new threads until a random delay has passed. Followups to the threads that arrived during this waiting period would all be sent at once, so if you see a message doesn't have responses, you know it's safe to write one. Duncan Murdoch __ R-help

Re: [R] uniform integer RNG 0 to t inclusive

2006-09-19 Thread Duncan Murdoch
is very large. - On the other hand, using size=1 is usually not a very efficient way to program anything, so anyone who does it might not notice the gain... Duncan Murdoch There is no such thing as urand in base R cheers and Thanks, Sean On 18/09/06, Duncan Murdoch [EMAIL PROTECTED

Re: [R] symbolic matrix elements...

2006-09-18 Thread Duncan Murdoch
. Duncan Murdoch __ 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] uniform integer RNG 0 to t inclusive

2006-09-18 Thread Duncan Murdoch
as.integer() will work. Duncan Murdoch is floor() better than as.integer? Is this correct? Is the probability of the integer t the same as the integer 1 or 0 etc... I have done some rudimentary testing and this appears to work, but power being what it is, I can't see how to realistically

Re: [R] Building the call of an arbitrary function

2006-09-17 Thread Duncan Murdoch
going to have to look up the parameters that are appropriate to your target density (i.e. shape, rate, scale), I'm not sure how useful this will be. It might be easier just to code the call to dgamma directly. Duncan Murdoch __ R-help@stat.math.ethz.ch

Re: [R] merge strings

2006-09-17 Thread Duncan Murdoch
the collapse argument to paste: paste(x, collapse=) Or, if you want a number, sum(x * 10^rev(1:length(x) - 1)) Duncan Murdoch __ 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

Re: [R] Beta stochastic simulation

2006-09-15 Thread Duncan Murdoch
, in cran.r-project.org/bin/windows/base/rtest.html (though I notice the version there is a week old; I'd better kick the build script). Duncan Murdoch ' The correct result for the average annual loss, calculated using a battle tested FFT engine, is 1,609,361 The summary stats from my last

Re: [R] Beta stochastic simulation

2006-09-15 Thread Duncan Murdoch
On 9/15/2006 7:51 AM, Mark Pinkerton wrote: I have just installed 2.4.0 alpha and the problem persists. Here is the output of the run: Thanks. I'll try your script and see if I can track down what's going on. Duncan Murdoch # Summary stats summary(totals.losses1) Min. 1st Qu

Re: [R] Beta stochastic simulation

2006-09-15 Thread Duncan Murdoch
On 9/15/2006 7:51 AM, Mark Pinkerton wrote: I have just installed 2.4.0 alpha and the problem persists. Here is the output of the run: When I run it, I get a series of warning messages from qbeta. Do you get those? Duncan Murdoch # Summary stats summary(totals.losses1) Min. 1st

Re: [R] Beta stochastic simulation

2006-09-15 Thread Duncan Murdoch
were inaccurate, and you didn't think that was worth mentioning? I'll continue working on this after Risk Management Solutions compensates me for my wasted time, and pays me in advance for additional work. Duncan Murdoch Mark Pinkerton Risk Management Solutions Peninsular House 30

Re: [R] Rv generation

2006-09-14 Thread Duncan Murdoch
}\leq x x_{i+1} \] \[ F(x)=1 \ \text{if} \ x x_{i+1} \] This sounds an awful lot like a class assignment. You should ask your instructor for help with it. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Beta stochastic simulation

2006-09-14 Thread Duncan Murdoch
Qu. Max. 2.803e-06 4.583e-02 1.078e-01 1.419e-01 2.047e-01 8.861e-01 and I think those results look reasonable (and the qbeta method has a smaller mean, this run). Duncan Murdoch Thanks Mark Pinkerton Risk Management Solutions Peninsular House 30 Monument Street London EC3R

Re: [R] Beta stochastic simulation

2006-09-14 Thread Duncan Murdoch
the following? - verify that the behaviour still happens in the current alpha test version - try to simplify the example code so someone else can run it? It could be that certain values of alpha and beta trigger a bug but the ones I tried were fine. Duncan Murdoch

Re: [R] Reading fixed column format

2006-09-13 Thread Duncan Murdoch
negative column values; see the man page). It will break the read up into blocks, so the large size of the original file shouldn't be a problem. Duncan Murdoch Sometimes I would also like to format the data after it has been read. For example, the ASCII file has price in columns 100 to 105

Re: [R] wireplot margins and additional z-axis

2006-09-13 Thread Duncan Murdoch
. Duncan Murdoch library(lattice) plot.vol- wireframe(volcano, aspect = c(1,1.5), scales=list(arrows=F),zlab=list(Z-axis,rot=90)) postscript(example_plot_3.eps, width = 14.0/2.54, height = 19.0/2.54, horizontal = FALSE, onefile = FALSE,paper=special

Re: [R] Command equivalent of rgui File, Save to File?

2006-09-12 Thread Duncan Murdoch
, but I don't know anyone working on that right now. Duncan Murdoch Mike Prager Southeast Fisheries Science Center, NOAA Beaufort, North Carolina USA __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Command equivalent of rgui File, Save to File?

2006-09-12 Thread Duncan Murdoch
On 9/12/2006 9:27 AM, Michael Prager wrote: Duncan Murdoch wrote: On 9/11/2006 3:57 PM, Michael Prager wrote: R 2.3.1 on Windows XP Professional. I am writing some scripts to generate examples. The Rgui menu item File, Save to File is helpful. Is there perhaps an equivalent R

Re: [R] function changes argument

2006-09-11 Thread Duncan Murdoch
there, too.) Thanks for the report. I'll send a copy of this to the bugs list, but I won't be able to attempt to fix it. Duncan Murdoch f-function(LL) { for (ll in LL) { ll$txt-changed in f } } l-list(txt=original value) L-list(l) L[[1]]$txt f(L) L[[1]]$txt gives (using

Re: [R] exactly representable numbers

2006-09-11 Thread Duncan Murdoch
) { if (x x + mid) u - mid else l - mid mid - (l + u)/2 } u } f(1e300) [1] 7.438715e+283 1e300 + 7.438715e+283 1e300 [1] TRUE 1e300 + 7.438714e+283 1e300 [1] FALSE Duncan Murdoch rksh On 11 Sep 2006, at 10:50, Sundar Dorai-Raj wrote: Robin Hankin

Re: [R] exactly representable numbers

2006-09-11 Thread Duncan Murdoch
On 9/11/2006 8:20 AM, Prof Brian Ripley wrote: On Mon, 11 Sep 2006, Duncan Murdoch wrote: On 9/11/2006 6:15 AM, Robin Hankin wrote: Hi Sundar thanks for this. But I didn't make it clear that I'm interested in extreme numbers such as 1e300 and 1e-300. That's not relevant

Re: [R] exactly representable numbers

2006-09-11 Thread Duncan Murdoch
On 9/11/2006 9:01 AM, Prof Brian Ripley wrote: On Mon, 11 Sep 2006, Duncan Murdoch wrote: On 9/11/2006 8:20 AM, Prof Brian Ripley wrote: On Mon, 11 Sep 2006, Duncan Murdoch wrote: On 9/11/2006 6:15 AM, Robin Hankin wrote: Hi Sundar thanks for this. But I didn't make

Re: [R] exactly representable numbers

2006-09-11 Thread Duncan Murdoch
On 9/11/2006 11:01 AM, Robin Hankin wrote: Hi Duncan [snip] On 11 Sep 2006, at 12:12, Duncan Murdoch wrote: Here's my version: not tested too much. f - function(x) { u - x l - 0 mid - u/2 while (l mid mid u) { if (x x + mid) u - mid else l - mid

Re: [R] How to actively join you all

2006-09-09 Thread Duncan Murdoch
permission on the repository you need to convince the core group that you should be invited to join; there are currently 17 members, and I think there are 17 conflicting criteria for membership, so I don't know any rule other than make it obvious that it's better you're a member than not. Duncan

Re: [R] Connecting to a SQLBASE database with R

2006-09-08 Thread Duncan Murdoch
is to find out if SQLBASE supports ODBC connections. If it does, then you can use RODBC. If not, then you're probably out of luck. Duncan Murdoch I hope I would be understood. I am not a database specialist and, being french, my english is a little bit poor. Thanks for your response

Re: [R] deleting an arow added to a graphic

2006-09-06 Thread Duncan Murdoch
inherit this nice property. rgl (for 3d graphics) also allows items to be removed in a fairly inflexible way (only in the reverse order of the order drawn); the next release will make this more flexible. Duncan Murdoch __ R-help@stat.math.ethz.ch

Re: [R] problem with postscript output of R-devel on Windows

2006-09-01 Thread Duncan Murdoch
says about it. Duncan Murdoch Thanks for your help. Mark Mark W. Kimpel MD (317) 490-5129 Work, Mobile (317) 663-0513 Home (no voice mail please) 1-(317)-536-2730 FAX -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Thursday

Re: [R] problem with postscript output of R-devel on Windows

2006-08-31 Thread Duncan Murdoch
to illustrate the problem? We don't have all the variables used in that example. I think you should be able to do it with just base packages attached; if not, it's likely a problem with one of the contributed packages, rather than with R. Duncan Murdoch __ R

Re: [R] problem with postscript output of R-devel on Windows

2006-08-31 Thread Duncan Murdoch
datasets [7] base Mark W. Kimpel MD (317) 490-5129 Work, Mobile (317) 663-0513 Home (no voice mail please) 1-(317)-536-2730 FAX -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 12:52 PM To: Kimpel, Mark

Re: [R] Create a vector from another vector

2006-08-30 Thread Duncan Murdoch
(unsuccessful) time trying to write a function of my own but can't seem to get this to work properly. I doubt it, because this doesn't look like a standard problem. Duncan Murdoch Any hints would be greatly appreciated. Harold [[alternative HTML version deleted

Re: [R] .Rprofile under Windoze.

2006-08-30 Thread Duncan Murdoch
|Folder options...|View|Hide extensions for known file types (where each of the 4 components in that path is a different kind of interface element. I love the rich Windows user interface!) Duncan Murdoch (Gawd, but I ***hate*** Windoze!!!) If that's not the problem, can you suggest what

Re: [R] rgl: exporting to pdf or png does not work

2006-08-25 Thread Duncan Murdoch
On 8/24/2006 4:34 PM, Gaspard Lequeux wrote: Hej, On Thu, 24 Aug 2006, Duncan Murdoch wrote: On 8/24/2006 11:19 AM, Gaspard Lequeux wrote: On Wed, 23 Aug 2006, Duncan Murdoch wrote: On 8/23/2006 5:15 PM, Gaspard Lequeux wrote: When exporting a image from rgl, the following error

Re: [R] rgl: exporting to pdf or png does not work

2006-08-24 Thread Duncan Murdoch
On 8/24/2006 11:19 AM, Gaspard Lequeux wrote: Hej, On Wed, 23 Aug 2006, Duncan Murdoch wrote: On 8/23/2006 5:15 PM, Gaspard Lequeux wrote: When exporting a image from rgl, the following error is encountered: rgl.postscript('testing.pdf', fmt=pdf) RGL: ERROR: can't bind glx context

Re: [R] 3d timeseries dataframe

2006-08-23 Thread Duncan Murdoch
, and have it as a long file? Lots of functions in R are set up to use dataframes rather than arrays or subsets of arrays, so this might be more convenient. Duncan Murdoch [[alternative HTML version deleted]] __ R-help

Re: [R] negatively skewed data; reflecting

2006-08-23 Thread Duncan Murdoch
of my analysis and doesn't seem worth agonising hours over. I will probably kick myself when someone tells me the answer! Please don't kick yourself :-) Duncan Murdoch Thank you very much, Zoe __ R-help@stat.math.ethz.ch mailing list https

Re: [R] rgl package: color of the axes

2006-08-23 Thread Duncan Murdoch
) Version of R used: R 2.3.1; i486-pc-linux-gnu; 2006-07-13 01:31:16; Anyway, rgl is an excellent package. Thanks. It's still getting better. Duncan Murdoch /Gaspard __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] rgl: exporting to pdf or png does not work

2006-08-23 Thread Duncan Murdoch
; 2006-07-13 01:31:16; Running Debian GNU/Linux testing (Etch). That looks like an X11 error to me, not something that I'm very likely to be able to fix. If you can debug the error, it would be helpful. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing

Re: [R] Suggestions for help weighted.mean

2006-08-11 Thread Duncan Murdoch
[inf] else weighted.mean(x, w) in your own code. Duncan Murdoch Cheers Yan p.s. a while ago I suggested using '??xxx' as a shortcut for help.search(xxx), much like '?xxx' is a shortcut for help(xxx). I was just wondering if anyone had any more thoughts on the matter? Suggestions like

Re: [R] Auto-save possible in R?

2006-08-11 Thread Duncan Murdoch
don't know of anything exactly as you describe. I'd recommend thinking about suitable restart points in the computation, and manually using save() or save.image() in your script. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] problem in reading large files

2006-08-11 Thread Duncan Murdoch
: From CHANGES: R could crash when very low on memory. (PR#8981) You should also get more physical memory. 512MB is not much for handling a 200MB of data. You can fairly easily benefit from increasing up to 2 GB, and will benefit (with some work) if you have even more, up to 4 GB. Duncan

Re: [R] CPU Usage with R 2.1.0 in Windows (and with R 2.3.1)

2006-08-07 Thread Duncan Murdoch
.) Duncan Murdoch Sincerely, Markus Markus Preisetanz Consultant Client Vela GmbH Albert-Roßhaupter-Str. 32 81369 München fon: +49 (89) 74217-113 main: +49 (89) 74217-150 fax: +49 (89) 74217-250 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http

Re: [R] why does lm() not allow for negative weights?

2006-08-04 Thread Duncan Murdoch
observation y, a single parameter mu, design matrix X = 1, and weight -1, that formula becomes b - y, but that is the worst possible estimator in a least squares sense. The residual sum of squares can be made arbitrarily large and negative by setting b to a large value. Duncan Murdoch b

Re: [R] bringToTop without focus?

2006-08-03 Thread Duncan Murdoch
that. The closest is { bringToTop(stay=TRUE); bringToTop(-1) } but that only works if the previous window was the console. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Building a random walk vector

2006-08-03 Thread Duncan Murdoch
you want is vec - 100 + c(0, cumsum(runif(49, -2, 2))) Duncan Murdoch __ 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 and provide

Re: [R] A problem with R CMD SHLIB

2006-08-01 Thread Duncan Murdoch
own. Duncan Murdoch Rgds Chong Hui [[alternative HTML version deleted]] __ 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] open DLL in R

2006-08-01 Thread Duncan Murdoch
compiler used to build R and packages includes objdump and dlltool which can display DLL contents in a human readable format. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] RGB function

2006-07-30 Thread Duncan Murdoch
) b - matrix(runif(100), 10,10) matrix(rgb(r,g,b),10,10) The final call to matrix() is needed because rgb() loses the dimension attribute from its result. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Why the contrain does not work for selecting a particular range of data?

2006-07-23 Thread Duncan Murdoch
: ifelse() evaluates all tests in a vector, if() only evaluates one. You probably want ifelse() in both cases. Duncan Murdoch 1.Way one I use the data for x2=1 and run the program. It works for me. Tthe program is described as below: function (parameters,y1,x11) { p-parameters[1

Re: [R] R shutdown

2006-07-22 Thread Duncan Murdoch
2.2.1 is obsolete; you should be using 2.3.1 at a minimum, perhaps 2.3.1 patched), then there's a good chance someone will be able to track down the bug and fix it. Duncan Murdoch Best, Robert McFadden ?xml version=1.0 encoding=UTF-16? DATABASE EXE NAME=Rgui.exe FILTER

Re: [R] unexpected results

2006-07-21 Thread Duncan Murdoch
the dataframe. The error message makes it look as though you don't. If offend is a column in the dataframe, then you would use jacs.data[jacs.data$offend 0, ] or subset(jacs.data, offend 0) Duncan Murdoch can anyone help? Thanks nathan __ R-help

Re: [R] positive semi-definite matrix

2006-07-21 Thread Duncan Murdoch
error means this is not guaranteed to be positive semi-definite, but it will be very close. Duncan Murdoch __ 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

Re: [R] Correspondence analysis with R

2006-07-20 Thread Duncan Murdoch
them in a single figure with labels identifying each one of them? This thing is getting me almost crazy... See the corresp() function in MASS and the cca() function in vegan. Both of these can produce biplots. Duncan Murdoch __ R-help@stat.math.ethz.ch

Re: [R] Using corStruct in nlme

2006-07-20 Thread Duncan Murdoch
it. If you can find a script (including set.seed() to some value) that reliably causes a crash in R-patched, could you let me know? You can get R-patched from CRAN in the bin/windows/base directory. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list

Re: [R] How do I modify an exported function in a locked environment?

2006-07-20 Thread Duncan Murdoch
), ...) { result - rollmean(x, k, na.pad, align, ...) return(result*100) } ... Duncan Murdoch Any guidance appreciated. Steven McKinney Statistician Molecular Oncology and Breast Cancer Program British Columbia Cancer Research Centre email: [EMAIL PROTECTED] tel: 604

Re: [R] function names in a vector used by for (){} character problem ?

2006-07-20 Thread Duncan Murdoch
as kernels - list(gauss, epan, rectangular) and then pass kernels[[j]] instead of kernels[j]. Or your nawaline2 function could have something like if (is.character(kern)) kern - get(kern, envir=parent.frame()) to go looking for the object with the name stored in kern. Duncan Murdoch has

Re: [R] Loss of numerical precision from conversion to list ?

2006-07-20 Thread Duncan Murdoch
with this; I didn't really look at it in detail. Duncan Murdoch On 7/20/2006 5:09 PM, Fabian Scheipl wrote: I´m working on an R-implementation of the simulation-based finite-sample null-distribution of (R)LR-Test in Mixed Models (i.e. testing for Var(RandomEffect)=0) derived by C. M. Crainiceanu

Re: [R] Using corStruct in nlme

2006-07-20 Thread Duncan Murdoch
wrong in the code. Doug, can you spot what the problem might be? Duncan Murdoch -thomas # For corExp: set.seed(26) for(i in 1:length(CO2$conc)){ CO2$conc[i]-(CO2$conc[i]+rnorm(1)) } fm1CO2.lis - nlsList(SSasympOff, CO2) fm1CO2.nlme - nlme(fm1CO2.lis, control = list

Re: [R] voronoi tessellations

2006-07-19 Thread Duncan Murdoch
(vm) points(x,y,col='blue') and if you want the axes, axis(1) axis(2) box() Duncan Murdoch plot(x,y,col='blue') when you look at the plot of the mosaic overlayed with the raw data, the mosaic should have each data point in 1 cell, however that is not the case - any help would

Re: [R] R-help in a newsgroup

2006-07-18 Thread Duncan Murdoch
posted a list of the newsgroups here: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/75239.html recently. Duncan Murdoch Best, Darren __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] --no-save and --save toggle from inside R? + BATCH stderr

2006-07-11 Thread Duncan Murdoch
or on the bug list as a wishlist item. Otherwise it might get lost. Duncan Murdoch __ 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] use of NULL environment is deprecated?

2006-07-11 Thread Duncan Murdoch
into current versions. For example, if you installed a package before, but didn't re-install it with 2.3.1, or if you are reloading a workspace saved in an earlier version. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] use of NULL environment is deprecated?

2006-07-11 Thread Duncan Murdoch
On 7/11/2006 6:59 PM, Patrick Connolly wrote: On Tue, 11-Jul-2006 at 06:41PM -0400, Duncan Murdoch wrote: [] | | options(warn=2) will convert warnings into errors, so traceback will work. | | A common situation where I've seen that error is with binary saves from | earlier

Re: [R] 10^x instead 10EX on plot axes. How?

2006-07-10 Thread Duncan Murdoch
), labels=expression(1, 10^2, 10^4, 10^6)) axis(2, at=10^c(0,2,4,6), labels=expression(1, 10^2, 10^4, 10^6)) box() Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Source code for R graphics devices

2006-07-10 Thread Duncan Murdoch
there for the C code. XFig is in the devPS.c file. Duncan Murdoch Also -- a more general question on this topic -- presumably any R graphics device is driven by a stream of raw graphics data in some presumably device-independent format, which it then translates. Where can I find

Re: [R] file.choose but for folder/directory?

2006-07-10 Thread Duncan Murdoch
On 7/10/2006 8:51 PM, Randy Zelick wrote: Hello there, This question is relative to WindowsXP, using R 2.2.1: Time to upgrade. choose.dir (mentioned by Rich) was introduced in the next release. Duncan Murdoch I am looking for a function that allows a user to interactively choose

Re: [R] --no-save and --save toggle from inside R? + BATCH stderr

2006-07-10 Thread Duncan Murdoch
to --no-restore-data, although this presumably would have to be decided in a .First() function or something like it. This one can't currently be changed. Duncan Murdoch on a similar note, I would love a CMD BATCH invokation to output just one line to stderr at the end of its run which tells

Re: [R] Hunting for snow...

2006-07-09 Thread Duncan Murdoch
values exist... Duncan Murdoch __ 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] string problems with \\ (Windows)

2006-07-09 Thread Duncan Murdoch
basename() works. If you're on a system that doesn't think \\ is a path separator, you could do something like x - C:\\Documents and Settings\\myName\\My Documents\\RProjects\\Project1\\file.name.csv basename(gsub('','/',x)) Duncan Murdoch Charles Annis, P.E. wrote: Greetings, R-ians

Re: [R] Summary Statistics for data.frame

2006-07-08 Thread Duncan Murdoch
On 7/8/2006 3:44 PM, justin rapp wrote: I apologize for my constant questions but I am new to R and trying to gain an appreciation for its capabilities. The following task is easy in Excel and I was hoping somebody could give me a quick explanation for how it can be acheived in R so I can

<    1   2   3   4   5   6   7   8   9   10   >