Thanks for all the replies.
Actually, I ran into this only because I was using the wrong approach
to solve the real problem I had. Through private email exchanges
Professor Ripley tipped me into the right direction, so case is solved
but not through this.
Thanks to all for your attentions.
Chong Gu
> Chong Gu <[EMAIL PROTECTED]> writes:
>
> > I guess this is a feature
> >
> > > c(as.factor(2),as.factor(3))
> > [1] 1 1
> >
> > But is there a way to turn off the feature and return the following?
> >
> > [1] 2 3
> >
> > Thanks for any pointer.
>
> How about
>
> cc <- function(...) do.call("c", lapply(list(...),as.character))
> cc(as.factor(2),as.factor(3))
>
> ?
>
> (or as.integer(do.call.....) if you really want integers back)
> --
> O__ ---- Peter Dalgaard Blegdamsvej 3
> c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
> (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
> ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907
______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help