Re: [R] OT(slightly) - Tracking extended projects

2007-07-24 Thread Heinz Tuechler
At 22:36 23.07.2007 +, D L McArthur wrote: James MacDonald jmacdon at med.umich.edu writes: Hi all, Most of the analyses I do are short little once-and-done type things that are easily encapsulated in a .Rnw file. However, I sometimes end up with projects that take an extended amount

[R] How to check for existence url from within a function?

2007-05-26 Thread Heinz Tuechler
Dear All, To check if an url exists, I can use try(). This works, as I expected, if I do it directly, as in the first part of the following example, but I could not find a way to do it from within a function, as in the second part. Where could I find information on how to do this? Thanks, Heinz

Re: [R] How to check for existence url from within a function?

2007-05-26 Thread Heinz Tuechler
Thank you, Duncan, especially for the hint concerning inherits. Heinz At 08:02 26.05.2007 -0400, Duncan Murdoch wrote: On 26/05/2007 7:13 AM, Heinz Tuechler wrote: Dear All, To check if an url exists, I can use try(). This works, as I expected, if I do it directly, as in the first part

Re: [R] factor documentation issue

2007-02-28 Thread Heinz Tuechler
At 09:41 28.02.2007 +1030, Geoff Russell wrote: There is a warning in the documentation for ?factor (R version 2.3.0) as follows: The interpretation of a factor depends on both the codes and the 'levels' attribute. Be careful only to compare factors with the same set of levels (in the same

[R] convenient way to combine Surv objects?

2006-12-09 Thread Heinz Tuechler
Dear All, is there a convenient way to combine Surv objects? Imagine two Surv objects as in the following example. Is it possible to combine them into one _Surv_ object? I tried rbind(), cbind(), c(), merge(), but none of these function does, what I would like. So I drafted a method for

[R] How to join data.frames containing Surv objects?

2006-12-05 Thread Heinz Tuechler
Dear All, Trying to combine two data frames with identical structure by rbind() or merge() I cannot find a way to preserve the class of a Surv object (see example). Reading the help page for rbind, I an uncertain if I could expect that a Surf oject retains it's class, but I would wish it did.

Re: [R] Netiquette, was Re: ... gfortran and gcc...

2006-08-08 Thread Heinz Tuechler
What could be the reason, to respond not only to the list? I did not see an advantage, to receive a response twice, once directly, once by the list. Is it wrong, to assume that someone who writes to the list, does also receive all the postings on the list? Heinz At 08:09 08.08.2006 -0500, Mike

Re: [R] Summary method needed?

2006-08-03 Thread Heinz Tuechler
At 21:04 02.08.2006 +0100, Prof Brian Ripley wrote: On Wed, 2 Aug 2006, Christian Hennig wrote: Thank you Brian! I'm updating my fpc package at the moment and will add some new functions. I learned that there should be print and summary methods for the key functions. for

[R] Default first argument in assignment function possible?

2006-08-03 Thread Heinz Tuechler
Dear All, is there a possibility to provide a default for the first argument in an assignment function? I could not find out if and how. You see in the example below that not explicitly stating the first argument leads to errors. Thanks, Heinz Tüchler ### example of assignment function

[R] get() in sapply() in with()

2006-08-03 Thread Heinz Tuechler
Dear All, applying some function within a with() function I wanted to use also sapply() and get() to form a data.frame, but did not succede. Below is a simplified example. It is possible to use sapply() within a with() function, it is also possible to use get() within a with() function, but when

Re: [R] get() in sapply() in with()

2006-08-03 Thread Heinz Tuechler
Thank you, Thomas! It helps a lot to know that something is impossible and that I have to look for a different kind of solution. Heinz At 07:33 03.08.2006 -0700, Thomas Lumley wrote: On Thu, 3 Aug 2006, Heinz Tuechler wrote: Dear All, applying some function within a with() function I wanted

[R] How to get the name of the first argument in an assignment function?

2006-07-27 Thread Heinz Tuechler
Dear All! If I pass an object to an assignment function I cannot get it's name by deparse(substitute(argument)), but I get *tmp* and I found no way to get the original name, in the example below it should be va1. Is there a way? Thanks, Heinz ## example 'fu1-' - function(var, value) {

Re: [R] How to get the name of the first argument in an assignment function?

2006-07-27 Thread Heinz Tuechler
you, Gabor for your response. My example was very reduced, just to show the point, but in the way I would like to use it, probably your solution may be difficult to apply. Seems, I have to accept that I cannot solve it. Thanks again, Heinz On 7/27/06, Heinz Tuechler [EMAIL PROTECTED] wrote: Dear

Re: [R] Keep value lables with data frame manipulation

2006-07-17 Thread Heinz Tuechler
At 20:39 14.07.2006 -0500, Frank E Harrell Jr wrote: Heinz Tuechler wrote: At 11:02 13.07.2006 -0500, Frank E Harrell Jr wrote: Heinz Tuechler wrote: At 08:11 13.07.2006 -0500, Frank E Harrell Jr wrote: Heinz Tuechler wrote: At 13:14 12.07.2006 -0500, Marc Schwartz (via MN) wrote: On Wed

Re: [R] Keep value lables with data frame manipulation

2006-07-14 Thread Heinz Tuechler
At 11:02 13.07.2006 -0500, Frank E Harrell Jr wrote: Heinz Tuechler wrote: At 08:11 13.07.2006 -0500, Frank E Harrell Jr wrote: Heinz Tuechler wrote: At 13:14 12.07.2006 -0500, Marc Schwartz (via MN) wrote: On Wed, 2006-07-12 at 17:41 +0100, Jol, Arne wrote: Dear R, I import data from spss

Re: [R] Keep value lables with data frame manipulation

2006-07-13 Thread Heinz Tuechler
At 13:14 12.07.2006 -0500, Marc Schwartz (via MN) wrote: On Wed, 2006-07-12 at 17:41 +0100, Jol, Arne wrote: Dear R, I import data from spss into a R data.frame. On this rawdata I do some data processing (selection of observations, normalization, recoding of variables etc..). The result is

Re: [R] Keep value lables with data frame manipulation

2006-07-13 Thread Heinz Tuechler
At 08:11 13.07.2006 -0500, Frank E Harrell Jr wrote: Heinz Tuechler wrote: At 13:14 12.07.2006 -0500, Marc Schwartz (via MN) wrote: On Wed, 2006-07-12 at 17:41 +0100, Jol, Arne wrote: Dear R, I import data from spss into a R data.frame. On this rawdata I do some data processing (selection

Re: [R] Keep value lables with data frame manipulation

2006-07-13 Thread Heinz Tuechler
At 12:36 13.07.2006 -0400, Richard M. Heiberger wrote: Further I do not see a simple method to label numerical variables. I often encounter discrete, but still metric data, as e.g. risk scores. Usually it would be nice to use them in their original coding, which may include zero or decimal

Re: [R] Coxph

2006-07-11 Thread Heinz Tuechler
From the help page of Surv: Although unusual, the event indicator can be omitted, in which case all subjects are assumed to have an event. That means, you can use coxph that way, _but_ it depends on your model. Do you really want to model the time on study regardless of the kind of event?

Re: [R] Proportional Hazard Function and Competing risks

2006-07-11 Thread Heinz Tuechler
Maybe you find that thread helpful: http://tolstoy.newcastle.edu.au/R/help/00b/1426.html Heinz At 12:59 11.07.2006 +0200, [EMAIL PROTECTED] wrote: How can I model coxph() in combination with competing risks i.e. I have two events and for event the object will leave the data set. So :

[R] How to include NA's of a factor in table?

2006-07-10 Thread Heinz Tuechler
Dear All, Is there a better way to include NA's of a factor in the output of table() than using as.character()? Admittedly, I do not understand the help page for table concerning the exclude argument applied to factors. I tried in different ways, but could not get NA to be included in the table,

Re: [R] How to include NA's of a factor in table?

2006-07-10 Thread Heinz Tuechler
rue du Professeur Calmette B.P. 245 59019 Lille Cedex Tel : 33 (0)3.20.87.10.44 Fax : 33 (0)3.20.87.10.31 http://www-good.ibl.fr --- Heinz Tuechler a écrit : Dear All, Is there a better way to include NA's of a factor

[R] unique deletes names - intended?

2006-07-04 Thread Heinz Tuechler
Dear All, as shown in the example, unique() deletes names of vector elements. Is this intended? Of course, one can use indexing by !duplicated() instead. Greetings, Heinz ## unique deletes names v1 - c(a=1, b=2, c=3, e=2, a=4) unique(v1) # names deleted v1[!duplicated(v1)] # names preserved

Re: [R] How to call a value labels attribute?

2006-06-06 Thread Heinz Tuechler
Thank you, Richard. As soon as I find time I will carefully look at your solution and your book. Heinz At 10:01 05.06.2006 -0400, Richard M. Heiberger wrote: Aha! Thank you for the more detailed example. My solution for that situation is an attribute position and function as.position(). I use

Re: [R] How to call a value labels attribute?

2006-06-05 Thread Heinz Tuechler
Quoting Heinz Tuechler [EMAIL PROTECTED]: At 14:12 03.06.2006 +0200, Martin Maechler wrote: Heinz == Heinz Tuechler [EMAIL PROTECTED] on Tue, 23 May 2006 01:17:21 +0100 writes: Heinz Dear All, after searching on CRAN I got the Heinz impression that there is no standard way in R

Re: [R] How to call a value labels attribute?

2006-06-05 Thread Heinz Tuechler
Richard, Martin, the example is not ideal, I see. I was strating from the question, how to represent a metric categorical variable. By metric categorical variable I intend a variable, which has only few distinct values and an inherent metric. An example would be a risk score, which classifies

Re: [R] How to call a value labels attribute?

2006-06-04 Thread Heinz Tuechler
At 14:12 03.06.2006 +0200, Martin Maechler wrote: Heinz == Heinz Tuechler [EMAIL PROTECTED] on Tue, 23 May 2006 01:17:21 +0100 writes: Heinz Dear All, after searching on CRAN I got the Heinz impression that there is no standard way in R to Heinz label values of a numerical

Re: [R] How to make attributes persist after indexing?

2006-05-25 Thread Heinz Tuechler
, Marc Schwartz wrote: On Thu, 2006-05-25 at 00:43 +0100, Heinz Tuechler wrote: Thank you for your answer, Gabor. I will see, if I understood it. Heinz At 11:31 24.05.2006 -0400, Gabor Grothendieck wrote: You could create your own child class with its own [ method. [.myfactor - function(x

Re: [R] median of a survfit object

2006-05-24 Thread Heinz Tuechler
see: [R] How to access results of survival analysis Xiaochun Li (06 May 2006) At 15:03 24.05.2006 +0200, David Hajage wrote: Hello R users ! Here a survfit object : library(survival) essai - aml[aml$x == Maintained,] calc - survfit(Surv(essai$time, 1 - essai$status)) calc Call:

[R] How to make attributes persist after indexing?

2006-05-24 Thread Heinz Tuechler
Dear All! For descriptive purposes I would like to add attributes to objects. These attributes should be kept, even if by indexing only part of the object is used. I noted that some attributes like levels and class of a factor exist also after indexing, while others, like comment or label vanish.

Re: [R] How to make attributes persist after indexing?

2006-05-24 Thread Heinz Tuechler
) - attr x } gx - structure(fx, class = c(myfactor, class(fx))) attributes(gx[1]) On 5/24/06, Heinz Tuechler [EMAIL PROTECTED] wrote: Dear All! For descriptive purposes I would like to add attributes to objects. These attributes should be kept, even if by indexing only part of the object

[R] How to call a value labels attribute?

2006-05-22 Thread Heinz Tuechler
Dear All, after searching on CRAN I got the impression that there is no standard way in R to label values of a numerical variable. Since this would be useful for me I intend to create such an attribute, at the moment for my personal use. Still I would like to choose a name which does not conflict

[R] How to represent a metric categorical variable?

2006-05-18 Thread Heinz Tuechler
Dear All, often I encounter variables, which have only few distinct values and an inherent metric. An example would be a risk score, which classifies patients in several groups like low, intermediate, high, extreme with corresponding risk estimates of 0, 1, 2, 5.5. In some cases, like tables and

Re: [R] How to access results of survival analysis

2006-05-08 Thread Heinz Tuechler
At 12:55 07.05.2006 +0100, Prof Brian Ripley wrote: On Sun, 7 May 2006, Heinz Tuechler wrote: Hello Xiaochun Li! Thank you for submitting the function. At the time I had that problem I solved it in a somewhat different way. I changed a few lines in the print.survfit method. I introduced

Re: [R] How to access results of survival analysis

2006-05-07 Thread Heinz Tuechler
Hello Xiaochun Li! Thank you for submitting the function. At the time I had that problem I solved it in a somewhat different way. I changed a few lines in the print.survfit method. I introduced a parameter ret.res=FALSE set to false to preserve the normal behaviour of print. The second last line

[R] Surv object in data.frame and Design package

2006-03-16 Thread Heinz Tuechler
Dear All, there seems to be some strange influence of the Design package on data.frame. If I build a data.frame containing a Surv object without loading the package Design, the data frame is usable to coxph. If instead I just load Design and build a data.frame afterwards, the naming of the Surv

Re: [R] Surv object in data.frame and Design package

2006-03-16 Thread Heinz Tuechler
At 11:13 16.03.2006 -0800, Thomas Lumley wrote: On Thu, 16 Mar 2006, Heinz Tuechler wrote: Dear All, there seems to be some strange influence of the Design package on data.frame. If I build a data.frame containing a Surv object without loading the package Design, the data frame is usable

[R] Surv object in data.frame

2006-03-15 Thread Heinz Tuechler
Dear All, a Surv object I put in a data frame behaves somehow unexpected (see example). If I do a Cox regression on the original Surv object it works. If I put it in a data.frame and do the regression on the data frame it does not work. Seemingly it has to do with the class attribute, because if

Re: [R] Surv object in data.frame

2006-03-15 Thread Heinz Tuechler
At 09:23 15.03.2006 -0800, Thomas Lumley wrote: On Wed, 15 Mar 2006, Heinz Tuechler wrote: Dear All, a Surv object I put in a data frame behaves somehow unexpected (see example). If I do a Cox regression on the original Surv object it works. If I put it in a data.frame and do the regression

Re: [R] Surv object in data.frame

2006-03-15 Thread Heinz Tuechler
At 11:59 15.03.2006 -0600, Robert Baer wrote: This does work: coxph(survobj~group, data=df.test[[1]]) # this works like your original To get insight compare: str(survobj) str(df.test) str(df.test[[1]]) Thank you for your answer. It seems to me that your solution only works, as long as the

Re: [R] Splitting the list

2006-01-05 Thread Heinz Tuechler
be defined in the posting guide. This way, every reader/expert can decide on a personal level to split the list by filtering the messages accordingly. Heinz Tuechler John Maindonald email: [EMAIL PROTECTED] phone : +61 2 (6125)3473fax : +61 2(6125)5549 Mathematical Sciences Institute

Re: [R] A comment about R:

2006-01-04 Thread Heinz Tuechler
At 13:11 03.01.2006 -0500, Peter Flom wrote: Ben Fairbank [EMAIL PROTECTED] 1/3/2006 12:42 pm wrote One implicit point in Kjetil's message is the difficulty of learning enough of R to make its use a natural and desired first choice alternative, which I see as the point at which real progress

[R] survexp ratetables for european contries?

2005-12-15 Thread Heinz Tuechler
Dear All, Does someone have, or know of survexp ratetables for european contries, especially Austria and Germany? I know only about slopop in the package relsurv. Thanks in advance Heinz Tüchler __ R-help@stat.math.ethz.ch mailing list

Re: [R] survexp ratetables for european contries?

2005-12-15 Thread Heinz Tuechler
At 16:30 15.12.2005 +0100, Robert Chung wrote: Heinz Tuechler wrote: Dear All, Does someone have, or know of survexp ratetables for european contries, especially Austria and Germany? I know only about slopop in the package relsurv. I'm not sure I understand what you're asking for; slopop

Re: [R] SPSS Dataset

2005-09-09 Thread Heinz Tuechler
At 07:56 09.09.2005 +0200, TEMPL Matthias wrote: RSiteSearch(read spss data) -- library(foreign) ?read.spss Best, Matthias or spss.get in Hmisc Heinz -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von ERICK YEGON Gesendet: Freitag, 09.

Re: [R] change in read.spss, package foreign?

2005-09-09 Thread Heinz Tuechler
At 12:09 09.09.2005 +0200, Martin Maechler wrote: Heinz == Heinz Tuechler [EMAIL PROTECTED] on Fri, 09 Sep 2005 01:58:29 +0200 writes: Heinz Dear All, Heinz it seems to me that the function read.spss of package Heinz foreign changed its behaviour regarding factors. I Heinz

Re: [R] change in read.spss, package foreign?

2005-09-09 Thread Heinz Tuechler
Dear Thomas, Thanks a lot for your extensive answer. Heinz At 08:53 09.09.2005 -0700, Thomas Lumley wrote: On Fri, 9 Sep 2005, Heinz Tuechler wrote: Dear Martin, Thank you for your answer. As I said, I appreciate this change. The documentation does not explain precisely, how variables

[R] change in read.spss, package foreing?

2005-09-08 Thread Heinz Tuechler
Dear All, it seems to me that the function read.spss of package foreign changed its behaviour regarding factors. I noted that in version 0.8-8 variables with value labels in SPSS were transformed in factors with the labels in alphabetic order. In version 0.8-10 they seem to be ordered preserving

Re: [R] stratified Wilcoxon available?

2005-08-29 Thread Heinz Tuechler
At 19:02 28.08.2005 -0700, Thomas Lumley wrote: On Sun, 28 Aug 2005, Heinz Tuechler wrote: Thanks to Peter Dalgaard and Frank Harrell for your answers. Fortunately I don't have an urgent need for this test, but it may be in the future. Still I would be grateful if someone could comment on my

[R] stratified Wilcoxon available?

2005-08-28 Thread Heinz Tuechler
Dear All, is there a stratified version of the Wilcoxon test (also known as van Elteren test) available in R? I could find it in the survdiff function of the survival package for censored data. I think, it should be possible to use this function creating a dummy censoring indicator and setting it

Re: [R] stratified Wilcoxon available?

2005-08-28 Thread Heinz Tuechler
test. Thanks, Heinz Tüchler At 15:18 28.08.2005 -0500, Frank E Harrell Jr wrote: Peter Dalgaard wrote: Heinz Tuechler [EMAIL PROTECTED] writes: Dear All, is there a stratified version of the Wilcoxon test (also known as van Elteren test) available in R? I could find it in the survdiff

[R] how to write assignment form of function

2005-08-10 Thread Heinz Tuechler
Dear All, where can I find information about how to write an assigment form of a function? For curiosity I tried to write a different form of the levels()-function, since the original method for factor deletes all other attributes of a factor. Of course, the simple method would be to use instead

Re: [R] how to write assignment form of function

2005-08-10 Thread Heinz Tuechler
/336899 Fax: +32/16/337015 Web: http://www.med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: Heinz Tuechler [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Wednesday, August 10, 2005 2:24 PM Subject: [R] how to write

Re: [R] how to write assignment form of function

2005-08-10 Thread Heinz Tuechler
where I read what. Heinz Tüchler Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and A Guide for the Unwilling S User) Heinz Tuechler wrote: Dear All, where can I find information about how to write an assigment form of a function? For curiosity I

[R] how to print a data.frame without row.names

2005-08-02 Thread Heinz Tuechler
2004-04-12 Ostern Can I get this table without 1, 2, 3 ? Thanks in advance Heinz Tuechler __ 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] how to print a data.frame without row.names

2005-08-02 Thread Heinz Tuechler
At 16:05 02.08.2005 +0200, Romain Francois wrote: Le 02.08.2005 15:45, Heinz Tuechler a écrit : Dear All, is there a simple way to print a data.frame without its row.names? example: datum - as.Date(c(2004-01-01, 2004-01-06, 2004-04-12)) content - c('Neujahr', 'Hl 3 K.', 'Ostern') df1

Re: [R] how to print a data.frame without row.names

2005-08-02 Thread Heinz Tuechler
Thanks to all of you for your help. As far as I see, the solution of Peter Dalgaard works exactly as I want. All other solutions have limitations. Heinz At 19:19 02.08.2005 +0200, Peter Dalgaard wrote: Martin Maechler [EMAIL PROTECTED] writes: Heinz == Heinz Tuechler [EMAIL PROTECTED

[R] levels() deletes other attributes

2005-07-18 Thread Heinz Tuechler
Dear All, it seems to me that levels() deletes other attributes. See the following example: ## example with levels f1 - factor(c('level c','level b','level a','level c'), ordered=TRUE) attr(f1, 'testattribute') - 'teststring' attributes(f1) levels(f1) - c('L-A', 'L-B', 'L-C') attributes(f1) If

Re: [R] levels() deletes other attributes

2005-07-18 Thread Heinz Tuechler
At 09:29 18.07.2005 -0500, Frank E Harrell Jr wrote: Heinz Tuechler wrote: Dear All, it seems to me that levels() deletes other attributes. See the following example: ## example with levels f1 - factor(c('level c','level b','level a','level c'), ordered=TRUE) attr(f1, 'testattribute

Re: [R] levels() deletes other attributes

2005-07-18 Thread Heinz Tuechler
At 16:53 18.07.2005 +0200, Heinz Tuechler wrote: At 09:29 18.07.2005 -0500, Frank E Harrell Jr wrote: Heinz Tuechler wrote: Dear All, it seems to me that levels() deletes other attributes. See the following example: ## example with levels f1 - factor(c('level c','level b','level a','level

[R] factor to numeric in data.frame

2005-04-02 Thread Heinz Tuechler
Dear All, Assume I have a data.frame that contains also factors and I would like to get another data.frame containing the factors as numeric vectors, to apply functions like sapply(..., median) on them. I read the warning concerning as.numeric or unclass, but in my case this makes sense, because

Re: [R] factor to numeric in data.frame

2005-04-02 Thread Heinz Tuechler
At 07:15 02.04.2005 -0500, Gabor Grothendieck wrote: Try this: data.matrix(df.f12) Perfect! This is exactly what I needed. Many thanks, Heinz Tüchler On Apr 2, 2005 6:01 AM, Heinz Tuechler [EMAIL PROTECTED] wrote: Dear All, Assume I have a data.frame that contains also factors and I would

Re: [R] factor to numeric in data.frame

2005-04-02 Thread Heinz Tuechler
At 14:26 02.04.2005 +0100, Prof Brian Ripley wrote: On Sat, 2 Apr 2005, Heinz Tuechler wrote: Dear All, Assume I have a data.frame that contains also factors and I would like to get another data.frame containing the factors as numeric vectors, to apply functions like sapply(..., median

Re: [R] From FAQ 7.21 to a command like apply(sapply(list(f1,f2,f3),is.na),2,sum)

2005-03-30 Thread Heinz Tuechler
At 16:13 29.03.2005 -0800, Thomas Lumley wrote: On Wed, 30 Mar 2005, Heinz Tuechler wrote: Dear all, Last December there was a thread regarding the famous FAQ 7.21 How can I turn a string into a variable? and asking what people want to do with these strings. My, certainly trivial

Re: [R] From FAQ 7.21 to a command likeapply(sapply(list(f1,f2,f3),is.na),2,sum)

2005-03-30 Thread Heinz Tuechler
At 09:32 30.03.2005 +0200, Heinz Tuechler wrote: At 16:13 29.03.2005 -0800, Thomas Lumley wrote: On Wed, 30 Mar 2005, Heinz Tuechler wrote: Dear all, Last December there was a thread regarding the famous FAQ 7.21 How can I turn a string into a variable? and asking what people want to do

[R] From FAQ 7.21 to a command like apply(sapply(list(f1,f2,f3),is.na),2,sum)

2005-03-29 Thread Heinz Tuechler
Dear all, Last December there was a thread regarding the famous FAQ 7.21 How can I turn a string into a variable? and asking what people want to do with these strings. My, certainly trivial application would be as follows: Assume I have a data.frame containing besides others also the columns f1,

[R] Again: Variable names in functions

2005-02-17 Thread Heinz Tuechler
Hello, still I have difficulties with variable names in functions. I know the famous example form help for deparse/substitute but I will give a simpler one to explain my problem. I know from Reid Huntsinger (Tue, 8 Feb 2005 12:39:32 -0500) that: Semantically, R is pass-by-value, so you don't

Re: [R] Again: Variable names in functions

2005-02-17 Thread Heinz Tuechler
for the example. Still I am looking for a more general solution, but it is not urgent. Heinz Tüchler Heinz Tuechler wrote: Hello, still I have difficulties with variable names in functions. I know the famous example form help for deparse/substitute but I will give a simpler one to explain my problem. I

Re: [R] Again: Variable names in functions

2005-02-17 Thread Heinz Tuechler
At 11:51 17.02.2005 +0100, Peter Dalgaard wrote: Heinz Tuechler [EMAIL PROTECTED] writes: mytable1-function(x,y){table(x,y)} mytable1(charly, delta) y x 1 2 1 2 1 2 3 4 If I define the function in the following way, it does what I wish, namely it returns output equivalent

RE: [R] Again: Variable names in functions

2005-02-17 Thread Heinz Tuechler
At 08:32 17.02.2005 -0800, Berton Gunter wrote: I thought Thomas L. was clear, but apparently not... ** Do not pass character string names as arguments to functions. ** Pass the objects (or expressions) which can consist of lists of vectors, dataframes, etc. instead. If you need the names

[R] update.packages - delete downloaded - N

2005-02-15 Thread Heinz Tuechler
Hello, Using Update Packages from CRAN in R Version 2.0.1 Patched (2005-01-15) under Windows 98, I found it tricky to save the downloaded files. Even if I answer N to the question, if the downloaded files should be deleted, they are deleted after R is quitted. I understood that I have to copy

Re: [R] update.packages - delete downloaded - N

2005-02-15 Thread Heinz Tuechler
Thank you for the hint regarding the destdir parameter of update.packages. Heinz Tüchler At 12:15 15.02.2005 +0100, Uwe Ligges wrote: Heinz Tuechler wrote: Hello, Using Update Packages from CRAN in R Version 2.0.1 Patched (2005-01-15) under Windows 98, I found it tricky to save

[R] How to get variable names in a function?

2005-02-08 Thread Heinz Tuechler
Hello, applying a function to a list of variables I face the following problem: Let's say I want to compute tables for several variables. I could write a command for every single table, like bravo-c(1,1,2,3,5,5,5,);charly-c(7,7,4,4,2,1) table(bravo); table(charly) table(bravo); table(charly)

RE: [R] How to get variable names in a function?

2005-02-08 Thread Heinz Tuechler
for a list of variables. In any case, thanks, Heinz From: Heinz Tuechler Hello, applying a function to a list of variables I face the following problem: Let's say I want to compute tables for several variables. I could write a command for every single table, like bravo-c(1,1,2,3,5,5,5

RE: [R] How to get variable names in a function?

2005-02-08 Thread Heinz Tuechler
to produce this named list by some function from a simple list without retyping each name. Thanks again, Heinz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Heinz Tuechler Sent: Tuesday, February 08, 2005 8:45 AM To: r-help@stat.math.ethz.ch Subject

Re: [R] How to access results of survival analysis

2005-02-06 Thread Heinz Tuechler
a temporary workaround, but it seems to work. Thanks, Heinz Tüchler At 19:09 05.02.2005 +0100, Uwe Ligges wrote: Heinz Tuechler wrote: At 15:19 05.02.2005 +0100, Uwe Ligges wrote: Heinz Tuechler wrote: Hello, it seems that the main results of survival analysis with package survival are shown

Re: [R] How to access results of survival analysis

2005-02-05 Thread Heinz Tuechler
Message - From: Heinz Tuechler [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Friday, February 04, 2005 11:17 PM Subject: [R] How to access results of survival analysis Hello, it seems that the main results of survival analysis with package survival are shown only as side effects

Re: [R] How to access results of survival analysis

2005-02-05 Thread Heinz Tuechler
At 15:19 05.02.2005 +0100, Uwe Ligges wrote: Heinz Tuechler wrote: Hello, it seems that the main results of survival analysis with package survival are shown only as side effects of the print method. If I compute e.g. a Kaplan-Meier estimate by km.survdur-survfit(s.survdur) then I

[R] How to access results of survival analysis

2005-02-04 Thread Heinz Tuechler
Hello, it seems that the main results of survival analysis with package survival are shown only as side effects of the print method. If I compute e.g. a Kaplan-Meier estimate by km.survdur-survfit(s.survdur) then I can simply print the results by km.survdur Call: survfit(formula =

Re: [R] Modyfing PATH in Windows Installer for R

2004-12-07 Thread Heinz Tuechler
At 10:30 06.12.2004 -0500, Duncan Murdoch wrote: But we still have users using Win9x versions, which use a more DOS-like method of setting the path. At some point we'll drop support for them, but I don't want to do it sooner than necessary. Duncan Murdoch Thank you for supporting Win9x! I

Re: [R] How to know if a bug was recognised

2004-12-01 Thread Heinz Tuechler
2004 16:54:53 +0100 To: Duncan Murdoch [EMAIL PROTECTED] From: Heinz Tuechler [EMAIL PROTECTED] Subject: Re: [R] Attn Heinz Tuechler: Re: problem with sp ecial characters ( =?iso-8859-1?Q?=E4?= =?iso-8859-1?Q?,=F6,=FC)?= In-Reply-To: [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL

[R] How to know if a bug was recognised

2004-11-30 Thread Heinz Tuechler
Hello! A problem with special characters seemed to me to be a bug. I sent a mail to [EMAIL PROTECTED] concerning the problem (see below). How can I find out, if this is considered as a bug or an error of myself? Which part of FAQs or documentation did I miss to find the answer? thanks in advance

Re: [R] Attn Heinz Tuechler: Re: problem with sp ecial characters ( ä,ö,ü)

2004-11-30 Thread Heinz Tuechler
? Duncan Murdoch On Sat, 27 Nov 2004 23:31:23 +0100, Heinz Tuechler [EMAIL PROTECTED] wrote : Dear Developers! Using special characters I found a strange behaviour in R 2.0.1 and equally in R : Copyright 2004, The R Foundation for Statistical Computing Version 2.0.1 (2004-11-15), ISBN 3-900051

RE: [R] How to know if a bug was recognised

2004-11-30 Thread Heinz Tuechler
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Heinz Tuechler Sent: Tuesday, November 30, 2004 1:25 PM To: [EMAIL PROTECTED] Subject: [R] How to know if a bug was recognised Hello! A problem with special characters seemed to me to be a bug. I sent a mail to [EMAIL