[R] merge two vectors of the same length into one?
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Sun Mar 26 22:23:52 CEST 2006
"Zhiqiang Ye" <yezhiqiang at gmail.com> writes:
> > AB AA BA CC DC
> > 2 1 1 1 1
> >
>
> Yeah, thank you two for your help. BTW, can I change the output like this way:
>
> AB 2
> AA 1
> BA 1
> CC 1
> DC 1
Just feed it to cbind()
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list