@@ -338,40 +338,40 @@ tidy.prcomp_exploratory <- function(x, type="variances", n_sample=NULL, pretty.n
338338 normalized <- isTRUE(x $ normalize_data )
339339 variables_used <- length(d $ variable_sd )
340340 excluded_names <- d $ excluded_variables
341- excluded_display <- if (length(excluded_names ) == 0 ) " -" else paste(excluded_names , collapse = " , " )
341+ # #37268: show "None" (JA: なし) when nothing was excluded, not "-".
342+ excluded_display <- if (length(excluded_names ) == 0 ) " None" else paste(excluded_names , collapse = " , " )
342343 excluded_pct <- d $ excluded_row_rate * 100
343344 scale_ratio <- d $ scale_ratio
344345 scale_display <- if (is.na(scale_ratio )) " -" else format(round(scale_ratio , 1 ), nsmall = 1 )
345346 scale_status <- if (! normalized && is.finite(scale_ratio ) && scale_ratio > = cfg $ scale_ratio_warning ) " scale_warning" else " ok"
347+ # #37268: rename Rows Used / Variables Used; drop redundant Rows vs Variables row;
348+ # refresh Description copy (and English-canonical strings for the client translator).
346349 res <- tibble :: tibble(
347- Metric = c(" Rows Used " , " Rows Excluded" , " Variables Used " , " Excluded Variables" ,
348- " Normalization" , " SD Ratio (Max/Min)" , " Rows vs Variables " ),
350+ Metric = c(" Row Count " , " Rows Excluded" , " Number of Variables " , " Excluded Variables" ,
351+ " Normalization" , " SD Ratio (Max/Min)" ),
349352 Value = c(
350353 as.character(d $ analyzed_row_count ),
351354 paste0(d $ excluded_row_count , " (" , format(round(excluded_pct , 1 ), nsmall = 1 ), " %)" ),
352355 as.character(variables_used ),
353356 excluded_display ,
354357 if (normalized ) " Yes" else " No" ,
355- scale_display ,
356- paste0(d $ analyzed_row_count , " rows / " , variables_used , " variables" )
358+ scale_display
357359 ),
358360 Description = c(
359- " Number of rows used after removing missing values ." ,
361+ " Number of rows used in the analysis ." ,
360362 " Number and rate of rows removed because of missing values." ,
361363 " Number of variables used in the analysis." ,
362- " Variables dropped before analysis because they had only NA or a single value." ,
363- " Whether variables were scaled to unit variance before analysis." ,
364- " Ratio of the largest to the smallest variable standard deviation." ,
365- " Number of rows compared with the number of variables."
364+ " Variables dropped before analysis because they were all missing or had only one unique value." ,
365+ " Whether variables were standardized before analysis." ,
366+ " Ratio of the maximum to the minimum standard deviation across all variables."
366367 ),
367368 status = c(
368- " ok" ,
369+ if ( d $ analyzed_row_count < = variables_used ) " few_rows " else " ok" ,
369370 if (d $ excluded_row_rate > = cfg $ na_exclusion_warning ) " high_na_exclusion" else " ok" ,
370371 " ok" ,
371372 if (length(excluded_names ) == 0 ) " na" else " ok" ,
372373 " ok" ,
373- scale_status ,
374- if (d $ analyzed_row_count < = variables_used ) " few_rows" else " ok"
374+ scale_status
375375 )
376376 )
377377 }
0 commit comments