title: dplyr object not found error
body: <p>I am not quite sure why this piece of code isn't working. </p>
  
  <p>Here's how my data looks like:</p>
  
  <pre><code>head(test)
    Fiscal.Year Fiscal.Quarter   Seller Product.Revenue Product.Quantity Product.Family Sales.Level.1          Group Fiscal.Week
  1        2015         2015Q3 ABCD1234            4000                4      Paper cup      Americas Paper Division          32
  2        2014         2014Q1  DDH1234             300                5   Paper tissue  Asia Pacific Paper Division          33
  3        2015         2015Q1  PNS1234             298                6         Spoons          EMEA        Cutlery          34
  4        2016         2016Q4  CCC1234             289                7         Knives        Africa        Cutlery          33
  </code></pre>
  
  <p>Now, my objective is to summarize revenue by year.</p>
  
  <p>Here's the dplyr code I wrote:</p>
  
  <pre><code>test %&gt;% 
    group_by(Fiscal.Year) %&gt;%
    select(Seller,Product.Family,Fiscal.Year) %&gt;%
    summarise(Rev1 = sum(Product.Revenue)) %&gt;%
    arrange(Fiscal.Year)
  </code></pre>
  
  <p>This doesnt work. I get the error:</p>
  
  <pre><code>Error: object 'Product.Revenue' not found
  </code></pre>
  
  <p>However, when I get rid of select statement, it works but then I don't get to see the output with Sellers, and Product family.</p>
  
  <pre><code>test %&gt;% 
    group_by(Fiscal.Year) %&gt;%
   # select(Seller,Product.Family,Fiscal.Year) %&gt;%
    summarise(Rev1 = sum(Product.Revenue)) %&gt;%
    arrange(Fiscal.Year)
  </code></pre>
  
  <p>The output is : </p>
  
  <pre><code># A tibble: 3 x 2
    Fiscal.Year  Rev1
          &lt;dbl&gt; &lt;dbl&gt;
  1        2014   300
  2        2015  4298
  3        2016   289
  </code></pre>
  
  <p>This works well. </p>
  
  <p>Any idea what's going on? It's been about 3 weeks since I started programming in R. So, I'd appreciate your thoughts. I am following this guide: <a href="https://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html" rel="nofollow noreferrer">https://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html</a> </p>
  
  <p>Also, I looked at similar threads on SO, but I believe they were relating to issues because of "+" sign:<a href="https://stackoverflow.com/questions/38524956/error-in-dplyr-group-by-function-object-not-found">Error in dplyr group_by function, object not found</a></p>
  
  <p>I am looking for the following output:</p>
  
  <pre><code>  Fiscal.Year  Rev1 Product Family Seller
          &lt;dbl&gt; &lt;dbl&gt; ...             ...
  1        2014   ...
  2        2015   ... 
  3        2016   ...
  </code></pre>
  
  <p>Many thanks</p>