[R] tilde on a spanish keyboard?

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Aug 12 15:11:03 CEST 2008


On Tue, 12 Aug 2008, Michael R. Head wrote:

> On Tue, 2008-08-12 at 07:15 -0400, Martin Henry H. Stevens wrote:
>> Thanks Henrique. We need to use the tilde in formula statements as in,
>> lm(y ~ x)
>>
>> Any ideas?
>
> Does windows still let you hold down the right alt-key and type ascii
> character codes on the number pad?

At least on my machine, only the Alt (left, not AltGr on the right) works.
I believe that in some US keyboard layouts AltGr is missing and there are 
two Alt keys.

My wife has a Spanish keyboard loaded, and using On-screen Keyboard it 
shows that AltGr+5 is ~.  There are several different Spanish keyboards 
and the one with Euro seems to be AltGr+4, so bring up On-screen Keyboard 
(Accessories->Accessibility), click on the right Alt key and look at the 
layout.

The uses of AltGr in Microsoft keyboard layouts can be found at

http://office.microsoft.com/en-us/word/HP052590631033.aspx



>
> If so, you should be able to hold down Right-Alt and type 1, 2, 6 on the
> number pad to get a tilde out of the keyboard.
>
>> On Aug 12, 2008, at 7:02 AM, Henrique Dallazuanna wrote:
>>> You want the tilde on R?
>>>
>>> If yes, you want do this:
>>>
>>> plot(1, xlab = "\u0303")
>>> plot(1, xlab = "\u00c3")
>>> plot(1, xlab = "\u00D1")
>>>
>>>
>>>
>>>
>>> On 8/12/08, Martin Henry H. Stevens <HStevens at muohio.edu> wrote:
>>>> I was trying to help someone who used a spanish keyboard on a PC
>>>> running
>>>> Windows. he discovered that he had no tilde key. Does anyone know
>>>> of any
>>>> simple work-arounds?
>>>> Thanks,
>>>> Hank
>>>>
>>>> Dr. Hank Stevens, Associate Professor
>>>> 338 Pearson Hall
>>>> Botany Department
>>>> Miami University
>>>> Oxford, OH 45056
>>>>
>>>> Office: (513) 529-4206
>>>> Lab: (513) 529-4262
>>>> FAX: (513) 529-4243
>>>> http://www.cas.muohio.edu/~stevenmh/
>>>> http://www.users.muohio.edu/harkesae/
>>>> http://www.cas.muohio.edu/ecology
>>>> http://www.muohio.edu/botany/
>>>> "E Pluribus Unum"
>>>>
>>>> "I love deadlines. I love the whooshing noise they make as they go
>>>> by."
>>>>                                            (Douglas Adams)
>>>>
>>>>
>>>> If you send an attachment, please try to send it in a format
>>>> anyone can
>>>> read, such as PDF, text, Open Document Format, HTML, or RTF.
>>>> Why? See:
>>>> http://www.gnu.org/philosophy/no-word-attachments.html
>>>>
>>>> ______________________________________________
>>>> 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.
>>>>
>>>
>>>
>>> --
>>> Henrique Dallazuanna
>>> Curitiba-Paraná-Brasil
>>> 25° 25' 40" S 49° 16' 22" O
>>
>> Dr. Hank Stevens, Associate Professor
>> 338 Pearson Hall
>> Botany Department
>> Miami University
>> Oxford, OH 45056
>>
>> Office: (513) 529-4206
>> Lab: (513) 529-4262
>> FAX: (513) 529-4243
>> http://www.cas.muohio.edu/~stevenmh/
>> http://www.users.muohio.edu/harkesae/
>> http://www.cas.muohio.edu/ecology
>> http://www.muohio.edu/botany/
>> "E Pluribus Unum"
>>
>> "I love deadlines. I love the whooshing noise they make as they go by."
>>                                              (Douglas Adams)
>>
>>
>> If you send an attachment, please try to send it in a format anyone
>> can read, such as PDF, text, Open Document Format, HTML, or RTF.
>> Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html
>>
>> ______________________________________________
>> 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.
>>
> -- 
> Michael R. Head <burner at suppressingfire.org>
> http://www.cs.binghamton.edu/~mike/
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list