This has rather been driving me crazy. It should be straightforward but it's giving me lots of problems.
I have a data frame with variables that I want to summarize by two classification variables. The variables to summarize are
demo_vars <- c("Pct ELL", "Pct Free/Reduced Lunch", "Pct White", "Pct Afr-Am", "Pct Latino", "Pct Asian")
The code I'm trying to run is:
the.var.m <- demo_by_schl %>%
group_by(level, schl_id) %>%
summarize_each_(funs(mean), demo_vars)
But when I try this I get this error message:
Error in parse(text = x) : <text>:1:5: unexpected symbol
1: Pct ELL
^
Is this because of the space in the variable name? If so, how do I get around it? If not, what else am I doing wrong?
TIA.
--
Stuart Luppescu -- pixbuf .at.
gmail.comI made up a new word: plagiarism.
--jpuller