-
Notifications
You must be signed in to change notification settings - Fork 29
Description
JASP Version
0.95.2
Commit ID
No response
JASP Module
Descriptives
What analysis are you seeing the problem on?
Descriptive stats of an ordinal variable
What OS are you seeing the problem on?
macOS Silicon
Bug Description
When requesting descriptive stats on a ordinal variable, I get the following error message:
(Note that it worked with past versions of JASP such 0.19, 0.18, etc)
This analysis terminated unexpectedly.
Error in levels<-
(*tmp*
, value = as.character(levels)): factor level [2] is duplicated
Stack trace
analysis(jaspResults = jaspResults, dataset = dataset, options = options)
.descriptivesDescriptivesTable(dataset, options, jaspResults, numberMissingSplitBy = numberMissingSplitBy)
.descriptivesDescriptivesTable_subFunction(column, columnType, list(Variable = variable), options, shouldAddNominalTextFootnote, shouldAddModeMoreThanOnceFootnote, jaspResults)
toMixedCol(min(na.omitted))
jaspBase::createMixedColumn(maybeToString(x), mixedRowType)
validateCellFormats(formats, types, length(values))
stopifnot(lengthOfValues = length(types))
Summary.ordered(c(8, 11, 2, 9, 11, 5, 15, 11, 3, 15, 8, 9, 9, 7, 11, 12, 2, 7, 5, 13, 9, 3, 6, 8, 15, 2, 4, 7, 1, 11, 8, 5, 2, 9, 1, 6, 15, 8, 1, 4, 8, 11, 9, 5, 11, 2, 3, 11, 15, 7, 15, 3, 13, 15, 3, 1, 11, 11, 11, 15, 6, 5, 13, 3, 9, 9, 3, 8, 6, 11, 13, 3, 8, 8, 15, 4, 4, 11, 9, 11, 1, 3, 4, 3, 9, 9, 7, 15, 5, 11, 15, 7, 11, 11, 9, 2, 3, 8, 3, 3, 13, 11, 4, 11, 11, 2, 8, 4, 16, 8, 3, 11, 5, 8, 8, 11, 3, 9, 15, 2, 11, 15, 3, 13, 5, 3, 4, 15, 2, 7, 3, 3, 5, 9, 8, 11, 7, 7, 4, 11, 8, 7, 11, 8, 11,
11, 5, 13, 3, 11, 9, 1, 4, 8, 8, 11, 9, 9, 15, 1, 6, 11, 6, 5, 8, 13, 8, 11, 3, 8, 9, 11, 9, 9, 8, 8, 8, 11, 14, 8, 13, 11, 5, 8, 4, 8, 1, 11, 5, 18, 4, 15, 8, 6, 11, 15, 6, 2, 5, 3, 12, 11, 1, 15, 4, 7, 5, 3, 2, 5, 9, 3, 11, 11, 15, 8, 14, 4, 2, 13, 15, 12, 3, 11, 7, 5, 15, 15, 8, 11, 11, 11, 15, 15, 15, 11, 3, 5, 4, 5, 2, 3, 6, 5, 2, 11, 14, 6, 11, 4, 3, 15, 11, 11, 11, 5, 13, 9, 16, 3, 3, 7, 11, 13, 9, 9, 11, 15, 9, 4, 4, 4, 4, 11, 2, 11, 4, 14, 9, 9, 6, 3, 11, 8, 15, 8, 16, 13, 11, 15, 8, 5,
8, 6, 6, 6, 15, 4, 11, 6, 8, 2, 4, 15, 11, 15, 13, 8, 2, 9, 3, 5, 6, 4, 13, 16, 5, 7, 4, 6, 9, 11, 1, 3, 11, 4, 2, 2, 9, 4, 9, 8, 15, 2, 11, 11, 8, 8, 11, 16, 8, 8, 3, 3, 17, 2, 2, 8, 11, 8, 17, 8, 8, 8, 11, 11, 12, 14, 10, 2, 2, 4, 10, 3, 7, 12, 8, 2, 4, 11, 11, 8, 11, 4, 5, 3, 12, 5, 3, 9, 3, 11, 11, 6, 9, 2, 11, 11, 15, 9, 9, 9, 12, 15, 13, 4, 15, 3, 2, 4, 9, 2, 12, 9, 15, 2, 9, 13, 16, 11, 3, 15, 11, 10, 8, 8, 12, 2, 7, 3, 3, 4, 11, 9, 15, 13, 8, 7, 3, 11, 7, 15, 11, 2, 11, 9, 11, 11, 4, 11,
11, 11, 3, 4, 5, 11, 11, 3, 8, 5, 6, 5, 2, 5, 9, 1, 11, 11, 9, 15, 7, 15, 12, 11, 3, 5, 3, 2, 15, 17, 9, 11, 8, 11, 11, 15, 2, 4, 3, 5, 11, 9, 15, 4, 11, 2, 13, 11, 11, 11, 8, 6, 16, 8, 8, 11, 4, 3, 6, 5, 11, 11, 2, 9, 15, 6, 7, 5, 2, 6, 11, 3, 11, 11, 6, 4, 1, 9, 10, 7, 10, 6, 11, 4, 9, 8, 3, 9, 15, 9, 9, 9, 8, 2, 15, 16, 8, 17, 8, 11, 9, 8, 9, 11, 11, 6, 9, 5, 2, 5, 9, 9, 9, 3, 15, 8, 8, 13, 3, 9, 4, 6, 7, 3, 3, 11, 9, 11, 3, 8, 3, 11, 10, 15, 9, 7, 9, 11, 7, 1, 8, 3, 4, 3, 7, 7, 2, 13, 4, 9, 9,
5, 11, 11, 4, 5, 15, 6, 3, 11, 8, 9, 6, 11, 3, 11, 13, 8, 4, 9, 18, 3, 11, 15, 16, 2, 3, 8, 4, 11, 9, 6, 8, 4, 11, 15, 1, 5, 11, 4, 4, 15, 11, 8, 16, 2, 11, 9, 11, 11, 11, 9, 2, 9, 11, 11, 3, 11, 9, 11, 7, 3, 1, 5, 3, 3, 15, 3, 11, 14, 2, 9, 9, 8, 11, 3, 2, 5, 15, 6, 3, 9, 8, 8, 11, 5, 11, 2, 8, 11, 3, 3, 11, 15, 9, 11, 17, 9, 3, 9, 3, 12, 15, 5, 11, 11, 14, 7, 11, 9, 15, 2, 9, 14, 11, 4, 7, 3, 3, 5, 2, 11, 11, 9, 7, 1, 11, 5, 10, 4, 11, 11, 11, 15, 11, 17, 4, 3, 15, 12, 4, 15, 2, 9, 11, 4, 2, 15,
5, 9, 11, 9, 17, 11, 11, 2, 9, 10, 11, 11, 8, 2, 9, 15, 15, 9, 3, 3, 4, 7, 5, 9, 8, 9, 7, 5, 9, 2, 8, 8, 2, 6, 15, 4, 8, 2, 11, 11, 11, 11, 11, 9, 2, 3, 3, 9, 7, 4, 3, 5, 5, 3, 9, 15, 1, 2, 15, 2, 11, 11, 2, 2, 2, 11, 2, 11, 11, 6, 3, 15, 3, 13, 2, 4, 11, 11, 11, 7, 11, 6, 6, 3, 8, 11, 7, 2, 15, 3, 3, 15, 11, 2, 15, 9, 8, 5, 4, 9, 3, 9, 8, 6, 11, 11, 5, 18, 8, 9, 15, 17, 4, 13, 11, 11, 2, 15, 11, 11, 11, 11, 9, 4, 11, 2, 11, 11, 15, 3, 2, 5, 9, 9, 13, 4, 11, 2, 9, 6, 8, 11, 11, 11, 2, 5, 3, 11, 5,
15, 8, 9, 15, 11, 3, 15, 15, 4, 9, 1, 12, 9, 8, 11, 3, 13, 9, 8, 4, 9, 10, 9, 4, 9, 3, 11, 8, 15, 3, 4, 10, 3, 11, 6, 11, 13, 6, 5, 16, 12, 5, 13, 6, 9, 15, 3, 4, 3, 15, 16, 6, 16, 3, 3, 2, 14, 2, 15, 2, 8, 9, 14, 9, 2, 5, 6, 11, 9, 11, 9, 8, 11, 6, 2, 9, 9, 11, 15, 7, 9, 11, 3, 11, 11, 4, 2, 11, 8, 11, 11, 9, 13, 3, 11, 11, 4, 13, 16, 9, 5, 9, 4, 15, 2, 12, 11, 11, 6, 9, 1, 5, 5, 18, 2, 9, 9, 4, 15, 9, 8, 2, 9, 8, 16, 11, 8, 8, 11, 9, 6, 2, 1, 13, 9, 11, 6, 3, 4, 13, 15, 13, 15, 11, 3, 11, 6, 3,
9, 3, 7, 12, 11, 13, 6, 6, 2, 3, 9, 11, 12, 15, 11, 2, 2, 8, 8, 8, 8, 2, 4, 15, 8, 3, 11, 3, 4, 13, 2, 12, 11, 3, 11, 5, 15, 4, 15, 4, 2, 2, 6, 8, 11, 11, 4, 9, 15, 8, 14, 9, 16, 9, 13, 7, 11, 8, 12, 11, 16, 8, 11, 15, 11, 9, 2, 8, 4, 7, 4, 11, 10, 2, 8, 7, 11, 13, 7, 6, 8, 8, 2, 5, 15, 9, 11, 13, 8, 7, 9, 3, 16, 8, 9, 9, 6, 6, 8, 9, 11, 11, 7, 2, 3, 11, 4, 11, 5, 7, 15, 8, 5, 11, 2, 8, 6, 9, 11, 15, 9, 3, 9, 9, 15, 5, 3, 7, 5, 11, 5, 4, 2, 9, 3, 11, 3, 6, 8, 3, 8, 9, 2, 9, 15, 11, 3, 15, 4, 9, 4,
4, 4, 6, 4, 11, 11, 11, 7, 3, 9, 4, 12, 8, 5, 15, 11, 9, 4, 5, 15, 5, 15, 5, 2, 9, 15, 6, 9, 13, 6, 9, 4, 12, 2, 9, 15, 8, 7, 5, 14, 9, 4, 11, 2, 3, 11, 2, 11, 15, 9, 15, 8, 1, 3, 4, 3, 3, 8, 15, 3, 2, 2, 11, 5, 11, 16, 2, 12, 13, 11, 9, 15, 6, 11, 9, 15, 15, 10, 4, 4, 3, 15, 10, 11, 6, 3, 5, 6, 11, 9, 6, 11, 3, 1, 8, 16, 3, 9, 2, 1, 3, 9, 4, 11, 17, 3, 6, 9, 3, 15, 11, 2, 5, 11, 4, 7, 7, 11, 4, 3, 3, 3, 13, 4, 13, 15, 7, 6, 5, 13, 3, 4, 4, 3, 8, 5, 5, 7, 15, 4, 9, 2, 3, 11, 3, 7, 12, 4, 8, 8, 8,
7, 11, 11, 3, 15, 3, 2, 2, 11, 16, 9, 4, 8, 5, 8, 11, 9, 11, 8, 13, 2, 5, 2, 9, 9, 4, 9, 2, 3, 11, 11, 3, 8, 3, 15, 15, 11, 15, 9, 15, 6, 3, 13, 8, 2, 15, 9, 4, 9, 4, 5, 4, 7, 11, 15, 15, 5, 13, 4, 2, 8, 6, 5, 5, 9, 11, 15, 8, 9, 2, 11, 15, 7, 3, 15, 5, 9, 1, 5, 9, 2, 9, 8, 4, 5, 2, 3, 11, 8, 4, 9, 2, 8, 9, 8, 8, 9, 11, 11, 12, 11, 16, 15, 5, 2, 2, 5, 14, 9, 12, 11, 11, 9, 8, 3, 9, 6, 11, 4, 4, 5, 5, 13, 5, 8, 12, 15, 11, 11, 11, 7, 4, 11, 16, 7, 11, 17, 11, 11, 13, 7, 7, 8, 15, 11, 9, 8, 11, 11,
4, 5, 15, 9, 11, 11, 9, 11, 2, 2, 9, 17, 7, 3, 11, 7, 3, 5, 7, 11, 5, 8, 15, 3, 9, 9, 7, 8, 6, 2, 8, 4, 11, 3, 15, 11, 2, 9, 14, 11, 11, 13, 3, 11, 8, 11, 3, 11, 11, 8, 6, 15, 11, 5, 3, 9, 5, 8, 6, 9, 5, 15, 11, 5, 5, 2, 4, 5, 8, 5, 8, 2, 5, 3, 9, 8, 11, 11, 8, 11, 4, 11, 9, 11, 3, 12, 11, 2, 9, 9, 6, 16, 15, 3, 7, 15, 11, 8, 2, 15, 13, 3, 9, 11, 4, 2, 4, 2, 1, 9, 9, 3, 5, 11, 9, 15, 5, 8, 3, 9, 4, 4, 4, 4, 11, 6, 13, 9, 3, 5, 3, 11, 9, 2, 11, 15, 11, 9, 9, 4, 9, 9, 11, 9, 4, 11, 9, 3, 9, 16, 5,
11, 11, 8, 2, 9, 8, 2, 4, 6, 8, 11, 15, 11, 11, 11, 11, 2, 2, 9, 11, 3, 15, 3, 16, 3, 6, 11, 11, 15, 11, 11, 2, 6, 9, 3, 9, 9, 15, 13, 11, 11, 11, 15, 11, 15, 2, 11, 11, 6, 4, 8, 8, 5, 3, 2, 3, 9, 2, 2, 4, 11, 11, 12, 3, 8, 11, 7, 5, 3, 11, 2, 3, 5, 2, 2, 3, 5, 3, 8, 4, 15, 4, 9, 5, 2, 9, 5, 9, 7, 11, 11, 3, 9, 9, 11, 3, 11, 15, 15, 5, 5, 16, 15, 8, 9, 8, 15, 11, 3, 15, 11, 2, 2, 11, 3, 13, 5, 11, 3, 7, 6, 3, 2, 9, 9, 9, 8, 8), na.rm = FALSE)
ordered(levset[ind], levels = levset)
factor(x, ..., ordered = TRUE)
Expected Behaviour
The same analysis works with the same dataset using previous versions of JASP (such as 0.19, 0.18, etc)
Steps to Reproduce
- Load data file ESS_BE2018_subset.jasp
- Request descriptive stats for variable edlvebe
Log (if any)
No response
More Debug Information
No response
Final Checklist
- I have included a screenshot showcasing the issue, if possible.
- I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
- I have accurately described the bug, and steps to reproduce it.