Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document when exactly the column names from j are preserved #3244

Closed
Kodiologist opened this issue Dec 23, 2018 · 4 comments
Closed

Document when exactly the column names from j are preserved #3244

Kodiologist opened this issue Dec 23, 2018 · 4 comments

Comments

@Kodiologist
Copy link

Kodiologist commented Dec 23, 2018

Here is a Stack Overflow question I asked about the rules for when column names from j appear in the output, with some surprising examples. It's received three incomplete answers, two of which have been deleted. Clearly, when j is a named list, the given names are retained. Otherwise, it's not clear under which circumstances data.table will guess the column names.

(The contributing guidelines say I should add an issue label, but I don't seem to have permission to do that.)

@MichaelChirico
Copy link
Member

MichaelChirico commented Dec 23, 2018 via email

@Kodiologist
Copy link
Author

there are some existing issues about fixing the inconsistency, which is preferable to enumerating all the nooks and crannies of something which is admittedly flawed.

Makes sense; it might even be easier to simplify the actual rules and then explain those than to explain them as-is.

@Henrik-P
Copy link

Some related issues:

Auto-naming in j inconsistent (multi-statement j)

let j = c(prefix = lapply(.SD, f)) work when optimized

Possible inconsistencies in the autonaming and renaming of .N

@MichaelChirico
Copy link
Member

Thanks @Henrik-P I'll close now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants