[R] want to drop levels of table vector & join two vector(appending)
David Winsemius
dwinsemius at comcast.net
Sat Feb 4 19:19:05 CET 2012
On Feb 4, 2012, at 9:07 AM, sagarnikam123 wrote:
> is have vector from table stored in s variable
>> s
> [1] R P Y A C P V E S C D R R F S R S A D L T R H I R I
> Levels: A C D E F G H I K L M N P Q R S T V Y
If you want to join two factor vectors you need first coerce to
character vectors, use c() on them and if you want a factor of the
combined vector, then assign the result of factor() again.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/want-to-drop-levels-of-table-vector-join-two-vector-appending-tp4356851p4356851.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list