The code in which I am getting the error.
numCrimesByLSOA<-crimes %>% select(LSOA.code, LSOA.name, Crime.type) %>% group_by(LSOA.code) %>% summarise(Num.crimes=n())
Try with this as @BenBolker suggested:
#Code numCrimesByLSOA<-crimes %>% dplyr::select(LSOA.code, LSOA.name, Crime.type) %>% dplyr::group_by(LSOA.code) %>% dplyr::summarise(Num.crimes=n())
2.1m questions
2.1m answers
60 comments
57.0k users