Skip to content

Commit c36f7e4

Browse files
authored
Merge pull request #9369 from N-thony/bug_fix_levelslabels
Bug fix in Levels/Labels dialogue when filter is applied
2 parents 52e712a + 6cb8357 commit c36f7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instat/static/InstatObject/R/data_object_R6.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ DataSheet$set("public", "get_data_frame_length", function(use_current_filter = F
15451545

15461546
DataSheet$set("public", "get_factor_data_frame", function(col_name = "", include_levels = TRUE, include_NA_level = FALSE) {
15471547
if(!(col_name %in% self$get_column_names())) stop(col_name, " is not a column name,")
1548-
col_data <- self$get_columns_from_data(col_name, use_current_filter = FALSE)
1548+
col_data <- self$get_columns_from_data(col_name, use_current_filter = TRUE)
15491549
if(!(is.factor(col_data))) stop(col_name, " is not a factor column")
15501550

15511551
counts <- data.frame(table(col_data))

0 commit comments

Comments
 (0)