Skip to content
Prev 302666 / 398506 Next

Decimal number

Hi,

You are right, R doesn't allow white space within variable.? 


?beta0 = 64.90614
? beta1 = 17.7025
?her beta<-c(beta0,beta1)
#Error: unexpected symbol in "her beta"
?"her beta"<-c(beta0,beta1)
?"her beta"
#[1] "her beta"

#But, this will get the results:
?`her beta`<-c(beta0,beta1)

?`her beta`
#[1] 64.90614 17.70250
A.K.



----- Original Message -----
From: Eloi Mercier <emercier at chibi.ubc.ca>
To: hafida <hafida-06 at hotmail.fr>
Cc: r-help at r-project.org
Sent: Tuesday, August 7, 2012 5:02 PM
Subject: Re: [R] Decimal number

Hi hafida,

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

Is this what you want ?
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: