mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 18:41:58 +02:00
small error in freq
This commit is contained in:
7
R/freq.R
7
R/freq.R
@ -679,11 +679,10 @@ print.frequency_tbl <- function(x, nmax = getOption("max.print.freq", default =
|
||||
footer <- NULL
|
||||
}
|
||||
|
||||
if (any(class(x$item) %in% c('double', 'integer', 'numeric', 'raw', 'single'))) {
|
||||
x$item <- format(x$item)
|
||||
}
|
||||
if ("item" %in% colnames(x)) {
|
||||
x$item <- format(x$item)
|
||||
if (any(class(x$item) %in% c('double', 'integer', 'numeric', 'raw', 'single'))) {
|
||||
x$item <- format(x$item)
|
||||
}
|
||||
} else {
|
||||
opt$column_names <- opt$column_names[!opt$column_names == "Item"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user