[R] R crashes when loading library/package; Windows, Cygwin

2006-03-24 Thread Sixten Borg
sygehus texthtmllatex example missing link(s): ~~fun~~ /bin/sh: latex: command not found adding MD5 sums packaged installation of package 'cultosaurus' as cultosaurus_0.1.zip * DONE (cultosaurus) $ Sixten Borg IHE Box 2127 S-220 02 Lund Sweden

Re: [R] R seems to "stall" after several hours on a long series of analyses... where to start?

2005-11-09 Thread Sixten Borg
Hi, I saw something similar, when I had R to look in a file every half minute if there was a request to do something, and if so, do that something and empty the file. (This was my way of testing if I coud do an interactive web page, somehow I managed to get the web page to write the requests to

Sv: [R] Using locator() to digitise

2005-03-21 Thread Sixten Borg
Hi, Splus allows pasting a graphics object into the plotting window, which makes it possible to do what you describe below. Now I use R which doesn't seem to allow pasting the picture into the graphics window, so I copy the graph onto a transparency sheet, and stick it onto my screen using tape.

[R] Advice on good programming practice, lexical scope

2004-09-01 Thread Sixten Borg
In "An Introduction to R" (See R help menu), there is an example of a function 'open.account' that makes use of the lexical scope in R. I have a set of functions that can be used to output R tables and graphics into a single report document. (I am aware that several tools can do this already).

[R] Simulation from a model fitted by survreg.

2004-07-28 Thread Sixten Borg
Dear list, I would like to simulate individual survival times from a model that has been fitted using the survreg procedure (library survival). Output shown below. My plan is to extract the shape and scale arguments for use with rweibull() since my error terms are assumed to be Weibull, but it

Summary [R] R 1.9.0, special characters in variable names.

2004-06-24 Thread Sixten Borg
Summary: The locale setting in the operating system seems to be involved in what confused me a little bit. Thank you all for your help, especially the suggested work-around data.frame(..., check.names=F) which works very well. A mystery still to be solved is why two versions of R, running on

[R] R 1.9.0, special characters in variable names.

2004-06-23 Thread Sixten Borg
Hello all, I upgraded from R 1.8.1 to 1.9.0 (Windows XP), and spotted an odd thing. The last three letters in the Swedish alphabet are å, ä and ö. (In case they don't show correctly: they are a with a ring, a with two dots, and o with two dots (HTML: å ä ö). When I use these as variable names

[R] Extracting the survival function estimate from a survreg object.

2004-04-06 Thread Sixten Borg
Hello all, I want to extract the survival function estimate from a model fitted by survreg(). Using predict.survreg(..., type="quantile", p=seq(0,1,0.001)), gives the quantiles, which I managed to turn around into a survival function estimate (Prob{T > t} as function of t). Is there a more str

Ang: [R] How to write efficient R code

2004-02-18 Thread Sixten Borg
Hej Lennart, I would like to add one thing: Often, there already exists an R function that solves the problem at hand. Instead of writing your own function, search the help files [apropos(), help.search()]. What I some times find difficult though, is guessing what key words will produce relevant

[R] (no subject)

2004-01-08 Thread Sixten Borg
haracter which forces me to construct a valid dataset name for each file. Although I can do this by hand, I would like to know if there is any solution to my first approach. Thanks in advance, Sixten Sixten Borg IHE Box 2127 S-220 02 Lund Sweden tel: +46 46 32 91 07 fax:+46 46 12 16 04 www.ihe.se **