[R] Refactor all factors in a data frame

2007-06-05 Thread Hilmar Berger
write.table / read.table would be another option but I'm not sure if R can guess the factor/char/numeric-type correctly when reading the table. So, is there any way in drop the unused factor levels from *all* factors of a data frame without import/export ? Thanks in advance, Hilmar -- Hilmar Berger

Re: [R] Refactor all factors in a data frame

2007-06-05 Thread Hilmar Berger
=, ) data = eval(parse(text=paste(transform(data,,trans.vars, Regards, Hilmar Hilmar Berger schrieb: Hi all, Assume I have a data frame with numerical and factor variables that I got through merging various other data frames and subsetting the resulting data frame afterwards. The number

Re: [R] Refactor all factors in a data frame

2007-06-05 Thread Hilmar Berger
[cat] - lapply(df[cat], factor) Hadley On 6/5/07, Hilmar Berger [EMAIL PROTECTED] wrote: -- Hilmar Berger Studienkoordinator Institut für medizinische Informatik, Statistik und Epidemiologie Universität Leipzig Härtelstr. 16-18 D-04107 Leipzig Tel. +49 341 97 16 101 Fax. +49 341 97 16

[R] Font size of axis labels

2006-01-17 Thread Hilmar Berger
factors (cex) I would like to know how R scales axis font sizes internally. Could someone point me to the method/file in the R-source code (R 2.1.1) where this scaling is done ? Thanks, Hilmar -- Hilmar Berger Studienkoordinator Institut für medizinische Informatik, Statistik und Epidemiologie