I have dataframe that contains space in the column name
df <- data.frame("a 1"=c("jan","jan" , "feb"),"t t" =c(10,10,1))
colnames(df) <- c("a 1","t t")
I want to sum the "t t" column on the basis of "a 1" I tried this
df %>% group_by("a 1") %>% summarise(tx = sum("t t"))
the expected result is a dataframe having
a 1 t t
jan 20
feb 1