hafen / trelliscopejs

TrelliscopeJS R Package
https://hafen.github.io/trelliscopejs
Other
262 stars 36 forks source link

Error: Could not find unique group variables... #113

Closed carlosyanez closed 2 years ago

carlosyanez commented 2 years ago

Hi,

I've found the above error message when running the trelliscope() function. Before posting a large reproducible example, am I missing something in my data frame that triggers the message (i.e. some particular variable type,etc)?

Thanks Carlos

carlosyanez commented 2 years ago

I've reduced the number of entries in my data frame (it has +50k rows) and the function works again... It is there any official limit to the size of the input data frame?

hafen commented 2 years ago

Interesting. This isn't an issue with the size of the data. With your full larger data frame, when you do something like this:

sapply(dat, anyDuplicated)

Do you have any columns that have a result of 0?

carlosyanez commented 2 years ago

No

hafen commented 2 years ago

This means all variables in the data frame have at least one duplicated value. For trelliscope to work, you need to have one variable that is unique.

carlosyanez commented 2 years ago

Thanks!. I'm cleaning the data and I'll give it another go!