[R] get values out of combined object

ruipbarradas at sapo.pt ruipbarradas at sapo.pt
Mon Mar 21 19:25:29 CET 2016


Apparently your v_neighbours is a named vector of integers, so


or just


will do the job(!)

Hope this helps,

Rui Barradas

Quoting "Ragia ." <ragia11 at hotmail.com>:

>  Dear group
> I have the following variable   v_neighbours and it holds a vector  
> of the following :
>  gawker.com      gle.am   jezebel.com 
>           1          16          28 
> three urls and their id ...when I call the class(v_neighbours )  the  
> result is  "integer"
> how can I get the factor numeric values  ( 1,16,28) out of this variable.
> thanks in advance
> R.Ibrahim
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

More information about the R-help mailing list