title: Why is my R code geting applied to a column name?
body: <p>I am new to R so apologies if this is obvious. I am trying to manipulate daily data into monthly totals and I have managed to do so with the below code. However, I am accidentally applying some of my code to the new column name.</p>
  <p>This is my code:</p>
  <pre><code>monthly_df &lt;- daily_df %&gt;%                      
    group_by(lubridate::floor_date(daily_df$daily_col_name, 'new_col_name')) %&gt;%
    dplyr::summarise(daily_value = sum(daily_value))
  </code></pre>
  <p>I am trying to name this new column 'new_col_name', however the column name is this entire line of code:</p>
  <p>'lubridate::floor_date(daily_df$daily_col_name, 'new_col_name')'</p>
  <p>Any help as to what I am doing wrong here would be really appreciated.</p>
  <p>Thanks all</p>