Skip to content

Commit

Permalink
modify some logic identifying ints for absolute abundances
Browse files Browse the repository at this point in the history
  • Loading branch information
d-callan committed Jun 5, 2024
1 parent 2a94c7f commit 779f5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/class-AbsoluteAbundanceData.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ check_absolute_abundance_data <- function(object) {
numeric_data <- df[, !(names(df) %in% all_id_cols)]
if (inherits(df, 'data.table')) numeric_data <- df[, !(names(df) %in% all_id_cols), with=F]

if (!identical(numeric_data, round(numeric_data))) {
if (!all(numeric_data == round(numeric_data))) {
msg <- "Absolute abundance data must be integer numbers."
errors <- c(errors, msg)
}
Expand Down

0 comments on commit 779f5a3

Please sign in to comment.