Re: [R] Graph in vector format to OpenOffice

2008-10-05 Thread Simon Anders
Philippe Grosjean wrote: > I know this topic has been discussed already several times. Is it a > workable solution that emerged? I would like to place R graph in vector > format in an OpenOffice Writer document (solution working in Linux AND > Mac OS X AND Windows). I have tried to play with pstoed

Re: [R] t-test for multiple variables

2008-07-19 Thread Simon Anders
Hi Henning, Henning Wildhagen wrote: i tried your code, but it results in an error: "error in var(x) : `x` is empty" Do you have an idea what the reason might be? If you ask questions on this list, please provide some code snippets, which the others can copy and paste to reproduce your error

Re: [R] t-test for multiple variables

2008-07-18 Thread Simon Anders
Hi Henning, Henning Wildhagen wrote: Given a dataframe of three columns, where col1 is of type factor, col 2 and col3 are numeric and pairs of observations i would like to perform a paired t-test for each level of col1. I would like to avoid specifying the levels of col1 manually because it se

Re: [R] dots and substitute

2008-04-06 Thread Simon Anders
Hi Charles, Charles C. Berry wrote: > Try this: > > f2 <- function(...) sapply( substitute(list(...)), deparse )[-1] Wow, this works. Thanks a lot! > p.s. Why do you want this as mode "character"? For the usual purpose of 'substitute': to label something. The use case is that I have a

Re: [R] row by row similarity

2008-04-06 Thread Simon Anders
an see, the missing behaviour is marked NA, because it is uncomparable. To get the number of TRUE values, use > sum( r1==r2, na.rm=TRUE ) [1] 1 And to get the number of comparable observations, i.e. those without NA, use e.g. > length( na.omit( r1==r2 ) ) [1] 3 I hope this helps you to wor

[R] dots and substitute

2008-04-06 Thread Simon Anders
o\"", "3 + 5" ) My third try seems to be wrong as well: > f3 <- function(...) lapply( list(...), substitute ) > f3( 2+7, "foo", 3+5 ) Error in lapply(list(...), substitute) : '...' used in an incorrect context Does anybody has a good hi