[R] get values out of combined object
MacQueen, Don
macqueen1 at llnl.gov
Mon Mar 21 21:53:28 CET 2016
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 Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 3/21/16, 10:27 AM, "R-help on behalf of Ragia ."
<r-help-bounces at r-project.org on behalf of ragia11 at hotmail.com> wrote:
>
>
> 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