Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUnrecognized escaped in keyby #3319
Comments
|
Instead of dealing with that particular I would prefer to provide a helper function for cleaning up column names, and ask people to use that in such cases. |
|
We could add |
|
The "\" character is always treated as an escape key (using the following character) in strings (even when writing markdown comments here!). So if you want an actual backslash, you need to escape each backslash:
|
|
@sritchie73 That's not quite true. DT <- data.table(x = 1)
setnames(DT, "\n")
DT[, .(a = 1), keyby = "\n"]
# \n a
# 1: 1 1 |
Of course, I can change to
keyby = `\\phantom{.}`, but that can be hard to know in advance.Created on 2019-01-27 by the reprex package (v0.2.1)
Session info