[R] want to drop levels of table vector & join two vector(appending)

Petr Savicky savicky at cs.cas.cz
Sat Feb 4 16:16:26 CET 2012


On Sat, Feb 04, 2012 at 06:07:01AM -0800, 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

Hi.

Is as.character(), what you are looking for?

  as.character(s)

   [1] "R" "P" "Y" "A" "C" "P" "V" "E" "S" "C" "D" "R" "R" "F" "S" "R" "S" "A" "D"
  [20] "L" "T" "R" "H" "I" "R" "I"

Petr Savicky.



More information about the R-help mailing list