[R] What is the correct way of using function C() for factors:
Svetlana Eden
svetlana.eden at vanderbilt.edu
Thu Feb 5 19:15:26 CET 2004
The funciton c() works differently for strings and for factors:
For strings:
> l = c('a', 'b')
> l
[1] "a" "b"
For factors:
> l = c(factor('a'), factor('b'))
> l
[1] 1 1
What should be the right technique for merging factors?
--
Svetlana Eden Biostatistician II School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help
mailing list