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

DT[,.(myCol),with=FALSE] gives error 'object ansvals not found' #1440

Closed
mattdowle opened this issue Nov 23, 2015 · 0 comments
Closed

DT[,.(myCol),with=FALSE] gives error 'object ansvals not found' #1440

mattdowle opened this issue Nov 23, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@mattdowle
Copy link
Member

As highlighted here :
http://stackoverflow.com/questions/33851742/object-ansvals-not-found-error-what-does-it-mean

MRE :

DT = data.table(a=1:3, b=4:6)
myCol = "b"
DT[,myCol,with=F]     # correct
#   b
#1: 4
#2: 5
#3: 6
DT[,(myCol),with=F]   # correct
#   b
#1: 4
#2: 5
#3: 6
DT[,.(myCol),with=F]    # unhelpful error message (ansvals is internal variable)
#Error in `[.data.table`(DT, , .(myCol), with = F) : 
# object 'ansvals' not found
@mattdowle mattdowle added the bug label Nov 23, 2015
@mattdowle mattdowle added this to the v1.9.8 milestone Nov 23, 2015
@arunsrinivasan arunsrinivasan self-assigned this Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants