[R] numeric of length 1

Gerrit Eichner Gerrit.Eichner at math.uni-giessen.de
Tue Jun 23 08:58:58 CEST 2015


Hi, Ragia,

use

> names( pr_sub$vector[ 1])

  Regards  --  Gerrit


On Tue, 23 Jun 2015, Ragia Ibrahim wrote:

> Dear group,
> I have the following object
>
>> pr_sub$vector[1]
>        14
> 0.07782809
>
>> class( pr_sub$vector[1])
> [1] "numeric"
>
> > length( pr_sub$vector[1])
> [1] 1
> how can I separate  pr_sub$vector[1]
>
> and get 14 only
>
> thanks in advance
> Ragia
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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