[R] passing arguments to a function problem

2008-06-21 Thread Jiří Voller
Dear R-users, is there some way how to pass various colnames to the following code for sorting data.frames? mydf.ordered<-with(mydf, mydf[order(colname1,colname2, colnameX, decreasing = TRUE), ]) I was trying something like Afunction<-function (mydf,colnames,decreasing=T){ mydf.ordered<-

[R] sys.time question - how to improve R performance

2008-04-26 Thread Jiří Voller
Dear R-users, I run my program a difference between sys.times is as follows: user system elapsed 60167.53 2848.75 63278.93 I am quite puzzled how it may happen that system time is so much shorter than user time, I have 2 core computer most of the time (90%) I was not doing anything else with

[R] Exporting of R dendrogram object in the format of Eisen´s Cluster

2008-03-23 Thread Jiří Voller
Dear R-users, I would like to use Cluster 3.0 for my data because of its zooming, link out and copy (gene)labels into clipboard options. Unfortunately the program doesnt allow use of the distance metrics I would like to use. I would like to ask if there is some library, that allows saving dendrog

[R] Trying to write Merge for more data.frames - Error in match.names(clabs, names(xi))

2008-01-13 Thread Jiří Voller
Dear list members, I would like to merge multiple dataframes and seems that this task is going to be required quite often, so I decided to write a simple (pseudo)recursive merge. I started with the case when dataframes are merged by rows (0). But there is a problem when a dataframe to be merged in

[R] Constructin a call of function including permutation of column names - how to escape parentheses?

2007-11-25 Thread Jiří Voller
Dear R-users, I would like to construct a list of arguments for a function in a format function (list(item1=c("A","B"), item2=c("B","C")), item3=...): The individual vectors in the list are permutations of colnames of a dataframe. The trouble is that I am not able to handle escaping of parentheses