mltools icon indicating copy to clipboard operation
mltools copied to clipboard

Timeseries raises Error in dt1[, lapply(.SD, uniqueN)] : incorrect number of dimensions

Open cregouby opened this issue 7 years ago • 3 comments

Hello, Standard time-series dataset raise the following error :

library(dplyr)
explore_dataset(nasa)
[1] "Data has 41472 rows and 4 columns"
Error in dt1[, lapply(.SD, uniqueN)] : incorrect number of dimensions

turning the data-frame into data.table drops another error

library(data.table)
explore_dataset(nasa %>% as.data.table)
[1] "Data has 41472 rows and 11 columns"
Error in rep.int(y, times = nrow/(x[i] * n[i])) : 
  incorrect value 'times' 

thank you for your efforts ! Best regards C.R.

cregouby avatar Jun 26 '17 21:06 cregouby

Can you please make this reproducible? (I.e. be sure to include any library(...) calls I need to get the nasa table. Thanks!

ben519 avatar Jun 26 '17 23:06 ben519

Hello Ben, sorry for this miss. corrected. Hope you will b able to fix it. Best regards, C.R.

cregouby avatar Jun 27 '17 06:06 cregouby

Ah, much better. Thanks for reporting. Not sure when I can get to this though. explore_dataset () is still "experimental" at this time, but I have plans to improve it in the future.

ben519 avatar Jun 27 '17 21:06 ben519