cem icon indicating copy to clipboard operation
cem copied to clipboard

att fails with tibbles

Open jcfisher opened this issue 6 years ago • 0 comments

When using a tibble, att fails with the error Error in [.data.frame(TEi, idt) : undefined columns selected.

This is occurring because of line 374 (using the GitHub formatting), TEi <- data[,response]-prd. For a regular data.frame, this returns a vector; for a tibble, it returns a tibble. Although I haven't tested it, I suspect this will also create an error with data.tables.

To fix this, that line might be replaced with TEi <- data[[response]] - prod.

Let me know if I can help, and sorry to inundate you with bug reports.

jcfisher avatar Aug 09 '18 02:08 jcfisher