[R] Decimal number

Eloi Mercier emercier at chibi.ubc.ca
Tue Aug 7 23:02:14 CEST 2012


Hi hafida,

I fail to understand the question. Could you elaborate please ?

Is this what you want ?

 > beta0 = 64.90614
 > beta1 = 17.7025
 > beta<-c(beta0, beta1)
beta
[1] 64.90614 17.70250

As a side note, please keep in mind that R doesn't allow white space 
within variable name (name it her_beta instead).

Cheers,

Eloi

########
Salut Hafida,

je ne comprend pas la question. Peux tu détailler stp ?
Si c'est pour afficher les valeurs complètes de beta0 et beta1 alors 
l'exemple ci-dessus devrait faire l'affaire.

Autrement, R n'autorise pas la présence d'espace dans le nom des variables.

Cordialement,

Eloi

On 12-08-07 01:37 PM, hafida wrote:
> hello arun
>   >her beta can be considered simply as an object.
>
>> when i wrote beta
>> I want to get the number of beta and beta with the full part after the
> comma
>
>
> hafida
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Decimal-number-tp4639428p4639452.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>
>


-- 
Eloi Mercier
Bioinformatics PhD Student, UBC
Paul Pavlidis Lab
2185 East Mall
University of British Columbia
Vancouver BC V6T1Z4



More information about the R-help mailing list