matrix - Removing the levels attribute in the output - R -


i new r programming. wrote sample program , returns value of particular column in matrix. when print value this

[1] apple 2 levels : 1 2  

how value without levels in output.

thanks in advance.

just expand on a5c1d2h2i1m1n2o1r2t1's comment, following command prints variable apple without levels stuff:

 as.character(apple) 

to on command within r type:

?as.character

here online r entry command:

https://stat.ethz.ch/r-manual/r-devel/library/base/html/character.html


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -