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 <emerc...@chibi.ubc.ca> To: hafida <hafida...@hotmail.fr> Cc: r-help@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 ? > 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@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 ______________________________________________ R-help@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. ______________________________________________ R-help@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.