Open saurfang opened 9 years ago
The problem is still present :(
It's not pretty, but here is a work-around:
newdf <- dcast(aqm, aqm$'my month' + aqm$'my day' ~ variable, value.var = "value")
colnames(newdf)[1] <- "my month"
colnames(newdf)[2] <- "my day"
Throws exception
This becomes a problem when I read data using
readr
which preserves the column names as-is (I like your not messing with my column names by the way). Now if I want to do anydcast
using...
shorthand, it would fail. I can work around by constructing the formula manually/programmatically and quote the symbol properly.