Hi. Another question about the polling analysis. https://www.realclearpolitics.com/epolls/2016/president/us/general_election_trump_vs_clinton_vs_johnson_vs_stein-5952.html
I'm now trying to calculate the average margin of error of each polling websites to find out the confidence that a poll result would reflect the result. Here is what I have.
select(Poll, MoE) %>%
summarise(avg = mean(.data[[poll]], na.rm = TRUE))
And the error comes out:
Error: Must subset the data pronoun with a string
This should be pretty simple but I kind of stuck in summarise part. Thank you in advance for any hints.