jamovi / jmv

jamovi for R
https://www.jamovi.org
56 stars 27 forks source link

Descriptives: prevent error for factor with all missing values #352

Closed raviselker closed 1 year ago

raviselker commented 1 year ago

Previously, the frequency tables caused a vague error message when a factor with all missing values was added as a variable (Table$addRow(): value is not atomic). This PR prevents this error message from being thrown, while still providing the results that it can provide.

The second commit addresses the following: Previously, an uninformative error message was given if an empty splitBy variable was provided ("Table$addColumn(): title must be a string"). This commit makes sure a more informative error message is given.

The third commit addresses the following: Previously, an uninformative error was thrown if the user asks to label outliers in the box plot while one of the variables had no data. With this commit, an empty plot is shown instead (this is the customary behavior for all plots).

Addresses https://github.com/jamovi/jamovi-fun-todo-list/issues/44#issuecomment-1149324232 and https://github.com/jamovi/jamovi-fun-todo-list/issues/44#issuecomment-876048112 and https://github.com/jamovi/jamovi-fun-todo-list/issues/44#issuecomment-1159318408