[R] Re-sort list of vectors

2005-08-15 Thread Jan Hummel
Hi. Can anyone suggest a simple way to re-sort in R a list of vectors of the following form? input $"1" a b c 1 2 3 $"2" a b c 4 5 6 Output should be something like: "a" "1" 1 "2" 4 "b" "1" 2

Re: [R] Re-sort list of vectors

2005-08-15 Thread Jan Hummel
s the according value between both items. One point could be to build a matrix but this matrix would have many NA's. So I prefer Lists of Lists. Any ideas? cheers Jan -Ursprüngliche Nachricht- Von: Liaw, Andy [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. August 2005 17:3

Re: [R] Re-sort list of vectors

2005-08-16 Thread Jan Hummel
Dear list members, thank all of you for replying to my question. Finally I came up with 3 working solutions, which I ask you to rank now in terms of used resources, computation speed, "design questions" etc. x <- list("1" = c(a = 1, b = 2, c = 3), "2" = c(d = 4, b = 5, e = 6)) #looping; Thanks

[R] SAX Parser best practise

2005-09-20 Thread Jan Hummel
Dear All, I have a question regarding best practise in setting up a XML parser within R. Because I have files with more than 100 MB and I'm only interested in some values I think a SAX-like parser using xmlEventParse() will be the best solution. Unfortunately the values I'm looking for, to constr

Re: [R] SAX Parser best practise

2005-09-22 Thread Jan Hummel
Thank you Seth and Duncan for your input! > BTW, do you have a schema for the XML document you are working on? Yes, a schema is available here http://psidev.sourceforge.net/ms/xml/mzdata/mzdata.xsd Informations around mzData xml format are available here http://psidev.sourceforge.net/ms/#mzdata

Re: [R] SAX Parser best practise

2005-09-26 Thread Jan Hummel
Hi Duncan, thanks again for your comments. > I dug around in the libxml code and the Web to verify that > validation is indeed only possible in libxml when one uses > DOM (i.e. xmlTreeParse()). Using DOM is not an option for me, so I need to "validate" the xml parts I'm interested in within my

[R] Invisible plot using RSvgDevice

2005-01-10 Thread Jan Hummel
Dear list members, I have a probably simple question concerning the RSvgDevice. After upgrading from R 1.9.0 to R 2.0.1 the computet svg files looking empty. Each time the RSvgDevice 0.5.3 were used. Scales and headers are printed but the plots are missing: before updating the svg looked l