Skip to content

Commit e5e2b23

Browse files
committed
ensure integer output
because `seq()` might return double or integer and "programmers should not rely on which" (from the docs)
1 parent ae501dc commit e5e2b23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/aaa_values.R

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ value_samp_int <- function(object, n, original = TRUE) {
268268
size = n,
269269
replace = TRUE
270270
)
271+
res <- as.integer(res)
271272
} else {
272273
res <- sample(
273274
object$values,

0 commit comments

Comments
 (0)