ben519 / mltools

Exploratory and diagnostic machine learning tools for R
Other
72 stars 26 forks source link

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

Open cregouby opened 7 years ago

cregouby commented 7 years ago

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.

ben519 commented 7 years ago

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

cregouby commented 7 years ago

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

ben519 commented 7 years ago

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.