Skip to content

Commit

Permalink
Update R/data_replicate.R
Browse files Browse the repository at this point in the history
Co-authored-by: Etienne Bacher <[email protected]>
  • Loading branch information
strengejacke and etiennebacher committed Mar 23, 2024
1 parent 0f87577 commit caf70e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/data_replicate.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ data_replicate <- function(data,
}


# is.integer(c(1, 2)) -> FALSE
# all(c(1, 2) %% 1 == 0) -> TRUE
.is_integer <- function(x, remove_na = TRUE) {
if (remove_na) {
x <- x[!is.na(x)]
Expand Down

0 comments on commit caf70e1

Please sign in to comment.