Dear all
I have a small routine in S-Plus that I would like to use in R.  There are some small changes I've been able to adapt, but I don't know how to translate the line starting with "g1<-sort.col...." and the one "Size<- c(Size...")  (I also add some lines before)
(...)
Size<-NULL
g<-cbind(Tr$dev,Tr$size)
(...)
g<-data.frame(g)

# these next two lines are the ones I need help for

g1 <- sort.col(target=g, columns.to.sort="@ALL", columns.to sort.by=list("g.1"), ascending=T)
Size<-c(Size,g1[1,2])

Thanks in advance
Bernat


	[[alternative HTML version deleted]]

