Re: [R] get values out of combined object

2016-03-21 Thread Ragia .
many thanks...it solved my problem...and I will review what is factors..( I think I have misunderstanding in this) RagiA   > From: macque...@llnl.gov > To: ragi...@hotmail.com; r-help@r-project.org > Subject: Re: [R] get values out of combin

Re: [R] get values out of combined object

2016-03-21 Thread MacQueen, Don
Here, by example, might be what you're looking for: > v <- c(a=1, b=3, c=25) > v a b c 1 3 25 > unname(v) [1] 1 3 25 However, this has nothing to do with factors, and don't know what you mean by the "factor numeric values" of an object that isn't a factor. -- Don MacQueen Lawrence

Re: [R] get values out of combined object

2016-03-21 Thread ruipbarradas
Hello, Apparently your v_neighbours is a named vector of integers, so v_neighbours[1:3] or just v_neighbours will do the job(!) Hope this helps, Rui Barradas Quoting "Ragia ." :    Dear group I have the following variable   v_neighbours and it holds a vector of

[R] get values out of combined object

2016-03-21 Thread Ragia .
   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