I am new to learning and using R. I have been trying to find out summary statistics of a variable in a filtered data. I am using the following code:
library(dplyr) diameter7 <- filter(nigeria6, electricity_area == 1) diameter7 %>% group_by(affected7) %>% summary(electricty_area)
However, I keep getting the error message that electricity_area is not found. But I have checked the data and electricity_area is very much present. I am confused and can't really figure out what I am doing wrong here. Please help.