Skip to content
Back to formatted view

Raw Message

Message-ID: <A27562CE-EB01-4FD5-A531-6FCC97106DE2@mac.com>
Date: 2012-11-23T08:16:02Z
From: Brian Feeny
Subject: What is the . in formula ~. syntax?
In-Reply-To: <6650C80F-956E-4F6C-9AD3-3515CB39E3C4@gmail.com>

Thank you!  I searched in the manual, but I did not see where this is mentioned, I looked under operators 
and in some of the formula documentation.

Brian

On Nov 23, 2012, at 3:15 AM, Michael Weylandt <michael.weylandt at gmail.com> wrote:

> 
> 
> On Nov 23, 2012, at 4:26 AM, Brian Feeny <bfeeny at mac.com> wrote:
> 
>> I know if I have a dataframe with columns y, x1, x2 and I wish to have y as my y value and x1 and x2 as x values I can do:
>> y ~ x1 + x2
>> 
>> or 
>> 
>> y ~.
>> 
>> but can someone explain what . actually is or what its transposed into?
> 
> Everything not already stated. 
> 
> rmw
> 
>> 
>> I searched for this with no success, reading the "formula" manual pages.
>> 
>> Brian
>> 
>> ______________________________________________
>> 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.